feat: close file info popup if on same node (#1054)

This commit is contained in:
Andreas Bissinger
2022-03-06 13:07:12 +01:00
committed by GitHub
parent b493e23ed7
commit c25be06612
4 changed files with 29 additions and 16 deletions

View File

@@ -44,7 +44,7 @@ local M = {
{ key = 'W', action = "collapse_all" },
{ key = "S", action = "search_node" },
{ key = ".", action = "run_file_command" },
{ key = "<C-k>", action = "show_file_info" }
{ key = "<C-k>", action = "toggle_file_info" }
},
custom_keypress_funcs = {},
}
@@ -74,7 +74,7 @@ local keypress_funcs = {
rename = require'nvim-tree.actions.rename-file'.fn(false),
run_file_command = require'nvim-tree.actions.run-command'.run_file_command,
search_node = require'nvim-tree.actions.search-node'.fn,
show_file_info = require'nvim-tree.actions.file-popup'.show_file_info,
toggle_file_info = require'nvim-tree.actions.file-popup'.toggle_file_info,
system_open = require'nvim-tree.actions.system-open'.fn,
toggle_dotfiles = require"nvim-tree.actions.toggles".dotfiles,
toggle_help = require"nvim-tree.actions.toggles".help,