19 lines
517 B
Lua
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
|
|
}
|