mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
perf(neotree): add ctrl-h
key binding
This commit is contained in:
parent
333f6954e3
commit
d14af8a1d9
@ -180,6 +180,9 @@ require("neo-tree").setup({
|
|||||||
mappings = {
|
mappings = {
|
||||||
["<bs>"] = "navigate_up",
|
["<bs>"] = "navigate_up",
|
||||||
["."] = "set_root",
|
["."] = "set_root",
|
||||||
|
["<C-h>"] = function(state)
|
||||||
|
vim.cmd('call SpaceVim#plugins#projectmanager#current_root()')
|
||||||
|
end,
|
||||||
["H"] = "toggle_hidden",
|
["H"] = "toggle_hidden",
|
||||||
["/"] = "fuzzy_finder",
|
["/"] = "fuzzy_finder",
|
||||||
["D"] = "fuzzy_finder_directory",
|
["D"] = "fuzzy_finder_directory",
|
||||||
|
@ -897,6 +897,7 @@ To change the filemanager plugin insert the following to the `[options]` section
|
|||||||
# - nerdtree (default)
|
# - nerdtree (default)
|
||||||
# - vimfiler: you need to build the vimproc.vim in bundle/vimproc.vim directory
|
# - vimfiler: you need to build the vimproc.vim in bundle/vimproc.vim directory
|
||||||
# - defx: requires +py3 feature
|
# - defx: requires +py3 feature
|
||||||
|
# - neo-tree: require neovim 0.7.0
|
||||||
filemanager = "nerdtree"
|
filemanager = "nerdtree"
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -955,7 +956,7 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi
|
|||||||
| `<` | decrease filetree screenwidth |
|
| `<` | decrease filetree screenwidth |
|
||||||
| `<Home>` | Jump to first line |
|
| `<Home>` | Jump to first line |
|
||||||
| `<End>` | Jump to last line |
|
| `<End>` | Jump to last line |
|
||||||
| `Ctrl-Home` | Switch to project root directory |
|
| `Ctrl-h` | Switch to project root directory |
|
||||||
| `Ctrl-r` | Redraw |
|
| `Ctrl-r` | Redraw |
|
||||||
|
|
||||||
#### Open file with file tree.
|
#### Open file with file tree.
|
||||||
|
Loading…
Reference in New Issue
Block a user