Browse Source

more keybinds for nvimtree

christianchiarulli 4 years ago
parent
commit
59dd16925a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lua/lv-nvimtree/init.lua

+ 3 - 2
lua/lv-nvimtree/init.lua

@@ -51,8 +51,9 @@ M.config = function()
     local tree_cb = require'nvim-tree.config'.nvim_tree_callback
 
   vim.g.nvim_tree_bindings = {
-      { key = "l", cb = tree_cb("edit")},
-      { key = "h", cb = tree_cb("close_node")}
+      { key = {"l", "<CR>", "o"}, cb = tree_cb("edit")},
+      { key = "h", cb = tree_cb("close_node")},
+      { key = "v", cb = tree_cb("vsplit")}
     }
 end