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')
end
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'),
-- nerdtree
{
'preservim/nerdtree',
dependencies = {
'Xuyuanp/nerdtree-git-plugin',
'ryanoasis/vim-devicons',
},
cmd = 'NERDTreeToggle',
},
-- {
-- 'preservim/nerdtree',
-- dependencies = {
-- 'Xuyuanp/nerdtree-git-plugin',
-- 'ryanoasis/vim-devicons',
-- },
-- cmd = 'NERDTreeToggle',
-- },
}

View File

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