nvim/lua/plugins/nvim-tree.lua

18 lines
494 B
Lua

return {
'nvim-tree/nvim-tree.lua',
version = '*',
lazy = false,
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt.termguicolors = true
require('nvim-tree').setup()
local api = require('nvim-tree.api')
vim.keymap.set('n', '<leader>e', api.tree.open, { desc = "Open file explorer" })
vim.keymap.set('n', '<leader>E', api.tree.close, { desc = "Close file explorer" })
end
}