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";
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;
}
];
@ -13,10 +21,12 @@
enable = true;
closeIfLastWindow = true;
filesystem.filteredItems.forceVisibleInEmptyFolder = true;
window = {
width = 30;
autoExpandWidth = true;
};
};
};
}
}