2023-10-01 17:18:36 +08:00
|
|
|
return {
|
2023-10-15 22:30:52 +08:00
|
|
|
'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
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-10-01 17:18:36 +08:00
|
|
|
}
|
2023-10-15 22:30:52 +08:00
|
|
|
|