diff options
author | jgmdev <jgmdev@gmail.com> | 2022-03-13 14:53:39 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-22 13:16:10 -0400 |
commit | 8b3f210ebf5b5ab4f8375562675a60274172d82e (patch) | |
tree | ade51079d5d4b8d8d0186737c7b2bb657e90babb /plugins | |
parent | cd910db45c591b05902fe5bd82fe1f2a084dee6c (diff) | |
download | lite-xl-plugins-8b3f210ebf5b5ab4f8375562675a60274172d82e.tar.gz lite-xl-plugins-8b3f210ebf5b5ab4f8375562675a60274172d82e.zip |
hidestatus: remove since the statusbar provides this now
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/hidestatus.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/hidestatus.lua b/plugins/hidestatus.lua deleted file mode 100644 index 7189f49..0000000 --- a/plugins/hidestatus.lua +++ /dev/null @@ -1,19 +0,0 @@ --- mod-version:3 --lite-xl 2.1 -local command = require "core.command" -local StatusView = require "core.statusview" - -local visible = false -local funcs = { - [true] = StatusView.update, - [false] = function(self) self.size.y = 0 end, -} - -function StatusView:update(...) - funcs[visible](self, ...) -end - -command.add(nil, { - ["hide-status:toggle"] = function() visible = not visible end, - ["hide-status:hide"] = function() visible = false end, - ["hide-status:show"] = function() visible = true end, -}) |