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.
16 lines
237 B
Nix
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";
|
|
}
|
|
];
|
|
}
|