diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-01 14:26:11 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-01 14:26:11 +0200 |
commit | d2fc21ae088e0c078c39f7fb9f313b808e7e90b7 (patch) | |
tree | 443371c080af2a5ffca5c87799c0cd6f97948252 /.config/nvim/lua/_nvimtree | |
parent | 296b2245da8fda7c96080e96e238f97839e74411 (diff) |
Removed bloat, added some sweet features, synced with Lunarvim repo
Diffstat (limited to '.config/nvim/lua/_nvimtree')
-rw-r--r-- | .config/nvim/lua/_nvimtree/init.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/nvim/lua/_nvimtree/init.lua b/.config/nvim/lua/_nvimtree/init.lua index 11fe526..9f9cfd5 100644 --- a/.config/nvim/lua/_nvimtree/init.lua +++ b/.config/nvim/lua/_nvimtree/init.lua @@ -1,4 +1,5 @@ vim.g.nvim_tree_disable_netrw = 0 -- "1 by default, disables netrw +-- vim.g.nvim_tree_hijack_netrw = 0 --"1 by default, prevents netrw from automatically opening when opening directories (but lets you keep its other utilities) vim.g.nvim_tree_hide_dotfiles = 1 -- 0 by default, this option hides files and folders starting with a dot `.` vim.g.nvim_tree_indent_markers = 1 -- "0 by default, this option shows indent markers when folders are open vim.g.nvim_tree_follow = 1 -- "0 by default, this option allows the cursor to be updated when entering a buffer @@ -16,13 +17,13 @@ local tree_cb = require'nvim-tree.config'.nvim_tree_callback ["<2-LeftMouse>"] = tree_cb("edit"), ["<2-RightMouse>"] = tree_cb("cd"), ["<C-]>"] = tree_cb("cd"), - ["<C-v>"] = tree_cb("vsplit"), - ["<C-x>"] = tree_cb("split"), + ["v"] = tree_cb("vsplit"), + ["s"] = tree_cb("split"), ["<C-t>"] = tree_cb("tabnew"), ["<"] = tree_cb("prev_sibling"), [">"] = tree_cb("next_sibling"), ["<BS>"] = tree_cb("close_node"), - ["h"] = tree_cb("close_node"), + ["h"] = tree_cb("close_node"), ["<S-CR>"] = tree_cb("close_node"), ["<Tab>"] = tree_cb("preview"), ["I"] = tree_cb("toggle_ignored"), |