my-config/nvim/lua/plugins/tree.lua
2024-08-20 15:58:27 +03:00

19 lines
517 B
Lua

return {
'nvim-tree/nvim-tree.lua',
dependencies = {
'nvim-tree/nvim-web-devicons'
},
config = function ()
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<cr>')
require('nvim-tree').setup({
filters = {
dotfiles = true
}
})
vim.api.nvim_create_autocmd({"QuitPre"}, {
callback = function() vim.cmd("NvimTreeClose") end,
})
end
}