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

@@ -627,7 +627,7 @@ INFORMATIONS *nvim-tree-info*
- `W` will collapse the whole tree
- `S` will prompt the user to enter a path and then expands the tree to match the path
- `.` will enter vim command mode with the file the cursor is on
- `C-k` will show file infos about the file under the cursor
- `C-k` will toggle a popup with file infos about the file under the cursor
Defaults to:
>
@@ -670,7 +670,7 @@ Defaults to:
{ 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" }
}
<
The `list` option in `view.mappings.list` is a table of