nvim/lua/neovim/plugsettings/nvimtree.lua
2023-10-15 22:30:52 +08:00

33 lines
579 B
Lua

return {
'kyazdani42/nvim-web-devicons',
{
'kyazdani42/nvim-tree.lua',
config = function ()
require'nvim-tree'.setup {
sort_by = "case_sensitive",
view = {
width = 30,
},
-- renderer = {
-- group_empty = true,
-- },
filters = {
dotfiles = true,
},
-- -- 关闭文件时自动关闭
-- auto_close = true,
-- -- 不显示 git 状态图标
-- git = {
-- enable = true
-- }
}
G.map({
{"n", "<c-e>", ":NvimTreeToggle<CR>",{noremap = true}},
})
end
}
}