diff options
Diffstat (limited to 'plugins/hidestatus.lua')
-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, -}) |