nixvim-config/config/plugins/editor/neo-tree.nix
♥ Minnie ♥ bbfc2f6f47
feat(config/plugins/editor): add closeIfLastWindow option to neo-tree plugin
The neo-tree plugin configuration now includes an optional `closeIfLastWindow` setting that ensures the NeoTree window closes if it is the last open window. This enhancement improves user experience by automatically closing unnecessary file explorers.
2025-02-18 08:53:20 +08:00

16 lines
237 B
Nix

{...}: {
plugins.neo-tree = {
enable = true;
closeIfLastWindow = true;
};
keymaps = [
{
mode = "n";
key = "\\";
action = "<cmd>Neotree toggle<cr>";
options.desc = "Toggle Neotree";
}
];
}