From 71e2f05ee19c94705fadbc1f84e11990baf8ff1c Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Wed, 27 Mar 2024 16:59:07 +0100 Subject: [PATCH] fix(neorgcmd.modules.list): add basic escape keybinds --- lua/neorg/modules/core/neorgcmd/module.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/neorg/modules/core/neorgcmd/module.lua b/lua/neorg/modules/core/neorgcmd/module.lua index 7fb57c21d..b1098d82f 100644 --- a/lua/neorg/modules/core/neorgcmd/module.lua +++ b/lua/neorg/modules/core/neorgcmd/module.lua @@ -460,6 +460,13 @@ module.on_event = function(event) module_list_popup:update_layout() end) + local function close() + module_list_popup:unmount() + end + + module_list_popup:map("n", "", close, {}) + module_list_popup:map("n", "q", close, {}) + local lines = {} for name, _ in pairs(neorg.modules.loaded_modules) do