nvim: fix nvim-tree toggle keybind
This commit is contained in:
parent
95ff6fbab5
commit
f187d61006
1 changed files with 2 additions and 1 deletions
|
@ -56,4 +56,5 @@ nvimtree.setup {
|
||||||
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
||||||
|
|
||||||
-- KEYMAPS
|
-- KEYMAPS
|
||||||
vim.keymap.set('n', '<leader>e', nvimtree.toggle)
|
local api = require("nvim-tree.api")
|
||||||
|
vim.keymap.set('n', '<leader>e', api.tree.toggle)
|
||||||
|
|
Loading…
Add table
Reference in a new issue