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 | |
parent | a4897cb1c91a447d45649b5167f220199bbe04d5 (diff) | |
download | lite-xl-plugins-193acfbc9df2bc35fa2a1da820a116a559412042.tar.gz lite-xl-plugins-193acfbc9df2bc35fa2a1da820a116a559412042.zip |
Added plugin `inanimate`
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | plugins/inanimate.lua | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -21,10 +21,11 @@ Plugin | Description [`gofmt`](plugins/gofmt.lua?raw=1) | Auto-formats the current go file, adds the missing imports and the missing return cases [`hidelinenumbers`](plugins/hidelinenumbers.lua?raw=1) | Hides the line numbers on the left of documents *([screenshot](https://user-images.githubusercontent.com/3920290/81692043-b8b19c00-9455-11ea-8d74-ad99be4b9c5f.png))* [`hidestatus`](plugins/hidestatus.lua?raw=1) | Hides the status bar at the bottom of the window +[`inanimate`](plugins/inanimate.lua?raw=1) | Disables all transition animations [`indentguide`](plugins/indentguide.lua?raw=1) | Adds indent guides *([screenshot](https://user-images.githubusercontent.com/3920290/79640716-f9860000-818a-11ea-9c3b-26d10dd0e0c0.png))* [`language_angelscript`](plugins/language_angelscript.lua?raw=1) | Syntax for the [Angelscript](https://www.angelcode.com/angelscript/) programming language [`language_cpp`](plugins/language_cpp.lua?raw=1) | Syntax for the [C++](https://isocpp.org/) programming language -[`language_csharp`](plugins/language_csharp.lua?raw=1) | Syntax for the [C#](http://csharp.net) programming language +[`language_csharp`](plugins/language_csharp.lua?raw=1) | Syntax for the [C#](http://csharp.net) programming language [`language_fe`](plugins/language_fe.lua?raw=1) | Syntax for the [fe](https://github.com/rxi/fe) programming language [`language_go`](plugins/language_go.lua?raw=1) | Syntax for the [Go](https://golang.org/) programming language [`language_hs`](plugins/language_hs.lua?raw=1) | Syntax for the [Haskell](https://www.haskell.org/) programming language 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 |