From b651252f41e8cffbed2789d14cc8b43f63b72eb4 Mon Sep 17 00:00:00 2001 From: newbieQQ <1770362456@qq.com> Date: Mon, 8 May 2023 11:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E7=9A=84=E5=8A=A0=E8=BD=BD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 2 +- lua/core/keymap.lua | 2 +- lua/core/plug.lua | 13 +++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) 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', + }, })