Skip to content

Commit f6aba66

Browse files
smhcShane Hird
and
Shane Hird
authored
Close help on q/close instead of ignore keypress (#1043)
Co-authored-by: Shane Hird <shane.hird@csgicorp.com>
1 parent 690c7e9 commit f6aba66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/nvim-tree/actions/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ local keypress_funcs = {
8383
}
8484

8585
function M.on_keypress(action)
86+
if view.is_help_ui() and action == 'close' then
87+
action = 'toggle_help';
88+
end
8689
if view.is_help_ui() and action ~= 'toggle_help' then return end
8790
local node = lib.get_node_at_cursor()
8891
if not node then return end

0 commit comments

Comments
 (0)