mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-23 12:42:18 +00:00
32 lines
663 B
Nix
32 lines
663 B
Nix
{
|
|
programs.nixvim = {
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>n";
|
|
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;
|
|
}
|
|
];
|
|
|
|
plugins.neo-tree = {
|
|
enable = true;
|
|
|
|
closeIfLastWindow = true;
|
|
filesystem.filteredItems.forceVisibleInEmptyFolder = true;
|
|
window = {
|
|
width = 30;
|
|
autoExpandWidth = false;
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|