diff --git a/init.lua b/init.lua index 880414a..e4a39f5 100644 --- a/init.lua +++ b/init.lua @@ -5,7 +5,7 @@ require('core.filetype') require('Plugin.coc') require('Plugin.lualine') -require('Plugin.treesitter') +-- require('Plugin.treesitter') require('Plugin.Imchange') diff --git a/lua/core/keymap.lua b/lua/core/keymap.lua index 806cddd..3c81c51 100644 --- a/lua/core/keymap.lua +++ b/lua/core/keymap.lua @@ -54,7 +54,7 @@ G.map({ --NvimTree G.map({ - {"n", "", ":NERDTree", opt}, + {"n", "", ":NERDTreeToggle", opt}, }) diff --git a/lua/core/plug.lua b/lua/core/plug.lua index ef6ee04..cbf58a2 100644 --- a/lua/core/plug.lua +++ b/lua/core/plug.lua @@ -48,7 +48,7 @@ require("lazy").setup({ -- 多光标 'terryma/vim-multiple-cursors', - + -- copilot 'github/copilot.vim', @@ -56,9 +56,14 @@ require("lazy").setup({ 'vijaymarupudi/nvim-fzf', -- nerdtree - 'preservim/nerdtree', - 'Xuyuanp/nerdtree-git-plugin', - 'ryanoasis/vim-devicons', + { + 'preservim/nerdtree', + dependencies = { + 'Xuyuanp/nerdtree-git-plugin', + 'ryanoasis/vim-devicons', + }, + cmd = 'NERDTreeToggle', + }, })