From 722bf638399f7dc0bc41d3fc9191736a114674d2 Mon Sep 17 00:00:00 2001 From: newbieQQ Date: Sat, 18 Nov 2023 23:21:18 +0800 Subject: [PATCH] update --- lua/plugs.lua | 13 +------------ lua/plugs/edit-plugs.lua | 13 ++++++++++++- lua/vscode.lua | 8 ++++++++ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/lua/plugs.lua b/lua/plugs.lua index 186f880..8b923e7 100644 --- a/lua/plugs.lua +++ b/lua/plugs.lua @@ -3,27 +3,16 @@ return { 'github/copilot.vim', -- github copilot 'vijaymarupudi/nvim-fzf', -- fzf 'lilydjwg/colorizer', -- 颜色识别 - 'terryma/vim-multiple-cursors', -- 多光标 require('plugs.coc'), -- coc require('plugs.lualine'), -- lualine require('plugs.nvimtree'), -- nvimtree require('plugs.treesitter'), -- treesitter - require('plugs.theme'), + require('plugs.theme'), -- theme require("plugs.edit-plugs"), require("plugs.hop"), require("plugs.toggleterm") - -- nerdtree - -- { - -- 'preservim/nerdtree', - -- dependencies = { - -- 'Xuyuanp/nerdtree-git-plugin', - -- 'ryanoasis/vim-devicons', - -- }, - -- cmd = 'NERDTreeToggle', - -- }, - } diff --git a/lua/plugs/edit-plugs.lua b/lua/plugs/edit-plugs.lua index de5ecd9..8e283d6 100644 --- a/lua/plugs/edit-plugs.lua +++ b/lua/plugs/edit-plugs.lua @@ -3,6 +3,9 @@ return { -- surround 和 wildfire 配合有神奇的效果 'tpope/vim-surround', 'gcmt/wildfire.vim', + + -- 多光标 + 'terryma/vim-multiple-cursors', }, { --格式整理 @@ -19,6 +22,14 @@ return { -- 括号箭头 'yaocccc/nvim-hlchunk', -- 注释插件 - 'tpope/vim-commentary', + { + 'tpope/vim-commentary', + config = function () + G.map({ + {"n", "", ":Commentary", {noremap = true}}, + {"v", "", ":Commentary", {noremap = true}}, + }) + end + } }, } diff --git a/lua/vscode.lua b/lua/vscode.lua index e69de29..fc88687 100644 --- a/lua/vscode.lua +++ b/lua/vscode.lua @@ -0,0 +1,8 @@ +require'lazy'.setup({ + + require('plugs.coc'), -- coc + require("plugs.hop"), + require('plugs.edit-plugs'), + + 'vijaymarupudi/nvim-fzf', -- fzf +})