diff --git a/home/modules/tui/neovim/plugins/neo-tree.nix b/home/modules/tui/neovim/plugins/neo-tree.nix index c0d03dc..4dcb999 100644 --- a/home/modules/tui/neovim/plugins/neo-tree.nix +++ b/home/modules/tui/neovim/plugins/neo-tree.nix @@ -4,7 +4,15 @@ { mode = "n"; key = "n"; - action = ":Neotree action=focus reveal toggle"; + action = ":Neotree reveal focus"; + options.desc = "Focus Neotree and reveal current file"; + options.silent = true; + } + { + mode = "n"; + key = "N"; + action = ":Neotree close"; + options.desc = "Close Neotree"; options.silent = true; } ]; @@ -13,10 +21,12 @@ enable = true; closeIfLastWindow = true; + filesystem.filteredItems.forceVisibleInEmptyFolder = true; window = { width = 30; autoExpandWidth = true; }; }; }; -} \ No newline at end of file +} +