From 3e93fe6f19a3c0ca1f275a275ff190b99489983d Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 4 Dec 2024 22:55:46 -0600 Subject: [PATCH] neovim: add neotree close mapping --- home/modules/tui/neovim/plugins/neo-tree.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 +} +