dotfiles/home/modules/tui/neovim/plugins/neo-tree.nix

33 lines
662 B
Nix
Raw Normal View History

2024-12-05 03:11:13 +00:00
{
programs.nixvim = {
keymaps = [
{
mode = "n";
key = "<leader>n";
2024-12-05 04:55:46 +00:00
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";
2024-12-05 03:11:13 +00:00
options.silent = true;
}
];
plugins.neo-tree = {
enable = true;
closeIfLastWindow = true;
2024-12-05 04:55:46 +00:00
filesystem.filteredItems.forceVisibleInEmptyFolder = true;
2024-12-05 03:11:13 +00:00
window = {
width = 30;
autoExpandWidth = true;
};
};
};
2024-12-05 04:55:46 +00:00
}