neovim: add neotree close mapping

This commit is contained in:
John Bowdre 2024-12-04 22:55:46 -06:00
parent e27044eaa2
commit 3e93fe6f19
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo

View file

@ -4,7 +4,15 @@
{ {
mode = "n"; mode = "n";
key = "<leader>n"; key = "<leader>n";
action = ":Neotree action=focus reveal toggle<CR>"; action = ":Neotree reveal focus<CR>";
options.desc = "Focus Neotree and reveal current file";
options.silent = true;
}
{
mode = "n";
key = "<leader>N";
action = ":Neotree close<CR>";
options.desc = "Close Neotree";
options.silent = true; options.silent = true;
} }
]; ];
@ -13,6 +21,7 @@
enable = true; enable = true;
closeIfLastWindow = true; closeIfLastWindow = true;
filesystem.filteredItems.forceVisibleInEmptyFolder = true;
window = { window = {
width = 30; width = 30;
autoExpandWidth = true; autoExpandWidth = true;
@ -20,3 +29,4 @@
}; };
}; };
} }