mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-18 19:02:17 +00:00
neovim: add neotree close mapping
This commit is contained in:
parent
e27044eaa2
commit
3e93fe6f19
1 changed files with 12 additions and 2 deletions
|
@ -4,7 +4,15 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>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;
|
options.silent = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -13,6 +21,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
closeIfLastWindow = true;
|
closeIfLastWindow = true;
|
||||||
|
filesystem.filteredItems.forceVisibleInEmptyFolder = true;
|
||||||
window = {
|
window = {
|
||||||
width = 30;
|
width = 30;
|
||||||
autoExpandWidth = true;
|
autoExpandWidth = true;
|
||||||
|
@ -20,3 +29,4 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue