mac-dotfiles/config/nvim/lua/plugins/tree.lua

20 lines
517 B
Lua
Raw Normal View History

2024-08-30 23:09:35 +00:00
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
}