mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
Allow user's to define their own nvim-tree bindings (#1181)
This commit is contained in:
parent
21419b244c
commit
c0a653a0cf
1 changed files with 7 additions and 5 deletions
|
@ -59,11 +59,13 @@ M.setup = function()
|
|||
|
||||
local tree_cb = nvim_tree_config.nvim_tree_callback
|
||||
|
||||
g.nvim_tree_bindings = {
|
||||
{ key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
|
||||
{ key = "h", cb = tree_cb "close_node" },
|
||||
{ key = "v", cb = tree_cb "vsplit" },
|
||||
}
|
||||
if not g.nvim_tree_bindings then
|
||||
g.nvim_tree_bindings = {
|
||||
{ key = { "l", "<CR>", "o" }, cb = tree_cb "edit" },
|
||||
{ key = "h", cb = tree_cb "close_node" },
|
||||
{ key = "v", cb = tree_cb "vsplit" },
|
||||
}
|
||||
end
|
||||
end
|
||||
--
|
||||
M.focus_or_close = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue