mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
perf(neotree): update key bindings
This commit is contained in:
parent
8e519e6e6a
commit
09c768b967
@ -91,16 +91,15 @@ require("neo-tree").setup({
|
|||||||
nowait = true,
|
nowait = true,
|
||||||
},
|
},
|
||||||
mappings = {
|
mappings = {
|
||||||
["<space>"] = {
|
-- ["<space>"] = {
|
||||||
"toggle_node",
|
-- "toggle_node",
|
||||||
nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
|
-- nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
|
||||||
},
|
-- },
|
||||||
["<2-LeftMouse>"] = "open",
|
["<2-LeftMouse>"] = "open",
|
||||||
["<cr>"] = "open",
|
["o"] = "open",
|
||||||
["<esc>"] = "revert_preview",
|
["<esc>"] = "revert_preview",
|
||||||
["P"] = { "toggle_preview", config = { use_float = true } },
|
["P"] = { "toggle_preview", config = { use_float = true } },
|
||||||
["l"] = "focus_preview",
|
["l"] = "open",
|
||||||
["S"] = "open_split",
|
|
||||||
["s"] = "open_vsplit",
|
["s"] = "open_vsplit",
|
||||||
-- ["S"] = "split_with_window_picker",
|
-- ["S"] = "split_with_window_picker",
|
||||||
-- ["s"] = "vsplit_with_window_picker",
|
-- ["s"] = "vsplit_with_window_picker",
|
||||||
@ -109,7 +108,7 @@ require("neo-tree").setup({
|
|||||||
-- ["t"] = "open_tab_drop",
|
-- ["t"] = "open_tab_drop",
|
||||||
["w"] = "open_with_window_picker",
|
["w"] = "open_with_window_picker",
|
||||||
--["P"] = "toggle_preview", -- enter preview mode, which shows the current node without focusing
|
--["P"] = "toggle_preview", -- enter preview mode, which shows the current node without focusing
|
||||||
["C"] = "close_node",
|
["h"] = "close_node",
|
||||||
-- ['C'] = 'close_all_subnodes',
|
-- ['C'] = 'close_all_subnodes',
|
||||||
["z"] = "close_all_nodes",
|
["z"] = "close_all_nodes",
|
||||||
--["Z"] = "expand_all_nodes",
|
--["Z"] = "expand_all_nodes",
|
||||||
|
Loading…
Reference in New Issue
Block a user