1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:00:04 +08:00

perf(neotree): add ctrl-h key binding

This commit is contained in:
wsdjeg 2023-05-31 20:10:25 +08:00
parent 333f6954e3
commit d14af8a1d9
2 changed files with 5 additions and 1 deletions

View File

@ -180,6 +180,9 @@ require("neo-tree").setup({
mappings = {
["<bs>"] = "navigate_up",
["."] = "set_root",
["<C-h>"] = function(state)
vim.cmd('call SpaceVim#plugins#projectmanager#current_root()')
end,
["H"] = "toggle_hidden",
["/"] = "fuzzy_finder",
["D"] = "fuzzy_finder_directory",

View File

@ -897,6 +897,7 @@ To change the filemanager plugin insert the following to the `[options]` section
# - nerdtree (default)
# - vimfiler: you need to build the vimproc.vim in bundle/vimproc.vim directory
# - defx: requires +py3 feature
# - neo-tree: require neovim 0.7.0
filemanager = "nerdtree"
```
@ -955,7 +956,7 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi
| `<` | decrease filetree screenwidth |
| `<Home>` | Jump to first line |
| `<End>` | Jump to last line |
| `Ctrl-Home` | Switch to project root directory |
| `Ctrl-h` | Switch to project root directory |
| `Ctrl-r` | Redraw |
#### Open file with file tree.