nvim/lua/plugins/nvim-tree.lua

18 lines
494 B
Lua
Raw Normal View History

2024-04-22 14:52:03 +00:00
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')
2024-04-22 17:05:09 +00:00
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" })
2024-04-22 14:52:03 +00:00
end
}