This commit is contained in:
QQ 2023-10-15 22:30:52 +08:00
parent bb72e3049b
commit 94d59b68d4
4 changed files with 40 additions and 13 deletions

View File

@ -43,4 +43,6 @@ else
require('neovim.neovim') require('neovim.neovim')
end end
require('normal.normal') require('normal.normal')

View File

@ -1,6 +1 @@
local G, opt = require('G'), {noremap = true}
--NvimTree
G.map({
{"n", "<c-e>", ":NERDTreeToggle<CR>", opt},
})

View File

@ -12,13 +12,13 @@ return {
require('neovim.plugsettings.theme'), require('neovim.plugsettings.theme'),
-- nerdtree -- nerdtree
{ -- {
'preservim/nerdtree', -- 'preservim/nerdtree',
dependencies = { -- dependencies = {
'Xuyuanp/nerdtree-git-plugin', -- 'Xuyuanp/nerdtree-git-plugin',
'ryanoasis/vim-devicons', -- 'ryanoasis/vim-devicons',
}, -- },
cmd = 'NERDTreeToggle', -- cmd = 'NERDTreeToggle',
}, -- },
} }

View File

@ -1,2 +1,32 @@
return { 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
}
}