nvim: fix nvim-tree toggle keybind

This commit is contained in:
saibotk 2023-06-16 02:07:11 +02:00
parent 95ff6fbab5
commit f187d61006
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -56,4 +56,5 @@ nvimtree.setup {
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
-- KEYMAPS
vim.keymap.set('n', '<leader>e', nvimtree.toggle)
local api = require("nvim-tree.api")
vim.keymap.set('n', '<leader>e', api.tree.toggle)