summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/_nvimtree/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/_nvimtree/init.lua')
-rw-r--r--.config/nvim/lua/_nvimtree/init.lua7
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"),