43 lines
808 B
Lua
43 lines
808 B
Lua
return {
|
|
'nvim-tree/nvim-tree.lua',
|
|
version = '*',
|
|
keys = {
|
|
{ '<leader>e', '<cmd>NvimTreeToggle<cr>' },
|
|
},
|
|
lazy = false,
|
|
dependencies = {
|
|
'nvim-tree/nvim-web-devicons',
|
|
},
|
|
init = function()
|
|
vim.g.loaded_netrw = 1
|
|
vim.g.loaded_netrwPlugin = 1
|
|
end,
|
|
config = function()
|
|
local nvimtree = require 'nvim-tree'
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
nvimtree.setup {
|
|
disable_netrw = true,
|
|
hijack_netrw = false,
|
|
sort = {
|
|
sorter = 'case_sensitive',
|
|
},
|
|
view = {
|
|
width = 50,
|
|
},
|
|
renderer = {
|
|
group_empty = true,
|
|
},
|
|
filters = {
|
|
dotfiles = false,
|
|
custom = { '^.git$' },
|
|
},
|
|
git = {
|
|
enable = true,
|
|
ignore = false,
|
|
timeout = 2000,
|
|
},
|
|
}
|
|
end,
|
|
}
|