mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-18 10:52:18 +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";
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue