diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-13 14:51:02 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-13 14:51:02 +0100 |
commit | 193acfbc9df2bc35fa2a1da820a116a559412042 (patch) | |
tree | 8f6957d457224a0f5acc9a6f0bce62a192176a33 /plugins/inanimate.lua | |
parent | a4897cb1c91a447d45649b5167f220199bbe04d5 (diff) | |
download | lite-xl-plugins-193acfbc9df2bc35fa2a1da820a116a559412042.tar.gz lite-xl-plugins-193acfbc9df2bc35fa2a1da820a116a559412042.zip |
Added plugin `inanimate`
Diffstat (limited to 'plugins/inanimate.lua')
-rw-r--r-- | plugins/inanimate.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/inanimate.lua b/plugins/inanimate.lua new file mode 100644 index 0000000..90e3625 --- /dev/null +++ b/plugins/inanimate.lua @@ -0,0 +1,8 @@ +local View = require "core.view" + +function View:move_towards(t, k, dest) + if type(t) ~= "table" then + return self:move_towards(self, t, k, dest) + end + t[k] = dest +end |