From 3b6c8ee3109e4042ceaa5a3423ecb3b351662517 Mon Sep 17 00:00:00 2001 From: QQ Date: Sun, 8 Oct 2023 23:27:05 +0800 Subject: [PATCH] update --- lua/normal/keymap.lua | 4 --- lua/normal/options.lua | 7 ++++++ lua/normal/plug.lua | 35 +------------------------- lua/normal/plugsettings/edit-plugs.lua | 26 +++++++++++++++++++ 4 files changed, 34 insertions(+), 38 deletions(-) create mode 100644 lua/normal/plugsettings/edit-plugs.lua diff --git a/lua/normal/keymap.lua b/lua/normal/keymap.lua index 1aefec1..d3ae4aa 100644 --- a/lua/normal/keymap.lua +++ b/lua/normal/keymap.lua @@ -50,10 +50,6 @@ G.map({ }) ---EasyAlign -G.map({ -{"v", "ga", ":EasyAlign", opt}, -}) diff --git a/lua/normal/options.lua b/lua/normal/options.lua index 42b59f8..dfb0106 100644 --- a/lua/normal/options.lua +++ b/lua/normal/options.lua @@ -49,5 +49,12 @@ G.api.nvim_create_autocmd({ "BufEnter" }, { end, }) +-- G.au({ +-- {"CmdlineEnter"}, +-- { +-- if index +-- } +-- }) + diff --git a/lua/normal/plug.lua b/lua/normal/plug.lua index 317dd43..62f29f3 100644 --- a/lua/normal/plug.lua +++ b/lua/normal/plug.lua @@ -1,42 +1,9 @@ return { - -- 括号箭头 - 'yaocccc/nvim-hlchunk', - - -- surround 和 wildfire 配合有神奇的效果 - 'tpope/vim-surround', - 'gcmt/wildfire.vim', - - -- 格式整理 - 'junegunn/vim-easy-align', - 'tpope/vim-commentary', -- 多光标 'terryma/vim-multiple-cursors', - - - - - - -- 项目管理 { - -- 'Shatur/neovim-session-manager', - -- dependencies = { - -- 'nvim-lua/plenary.nvim' - -- } - -- }, - - --{ - -- 'glepnir/dashboard-nvim', - -- event = 'VimEnter', - -- config = function() - -- require('dashboard').setup { - -- config - -- } - -- end, - -- dependencies = { {'nvim-tree/nvim-web-devicons'}} - -- } - -- lsp 补全以及语法高亮 - -- {'neoclide/coc.nvim', branch = 'release'}, + require("normal.plugsettings.edit-plugs.lua"), } diff --git a/lua/normal/plugsettings/edit-plugs.lua b/lua/normal/plugsettings/edit-plugs.lua new file mode 100644 index 0000000..268068e --- /dev/null +++ b/lua/normal/plugsettings/edit-plugs.lua @@ -0,0 +1,26 @@ +return { + { + -- surround 和 wildfire 配合有神奇的效果 + 'tpope/vim-surround', + 'gcmt/wildfire.vim', + }, + { + --格式整理 + { + 'junegunn/vim-easy-align', + cmd = "EasyAlign", + config = function () + G.map({ + {"v", "ga", ":EasyAlign", {noremap = true}}, + }) + end + }, + { + -- 括号箭头 + 'yaocccc/nvim-hlchunk', + -- 注释插件 + 'tpope/vim-commentary', + } + } + +}