Skip to content

Commit

Permalink
fix(neorgcmd.modules.list): add basic escape keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 27, 2024
1 parent 20be50c commit 71e2f05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/neorg/modules/core/neorgcmd/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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", "<Esc>", close, {})
module_list_popup:map("n", "q", close, {})

local lines = {}

for name, _ in pairs(neorg.modules.loaded_modules) do
Expand Down

0 comments on commit 71e2f05

Please sign in to comment.