diff --git a/nvim/lua/filemanager.lua b/nvim/lua/filemanager.lua index d04ad86..0804eec 100644 --- a/nvim/lua/filemanager.lua +++ b/nvim/lua/filemanager.lua @@ -56,4 +56,5 @@ nvimtree.setup { vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif") -- KEYMAPS -vim.keymap.set('n', 'e', nvimtree.toggle) +local api = require("nvim-tree.api") +vim.keymap.set('n', 'e', api.tree.toggle)