2023-10-08 23:27:05 +08:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
-- surround 和 wildfire 配合有神奇的效果
|
|
|
|
'tpope/vim-surround',
|
|
|
|
'gcmt/wildfire.vim',
|
2023-11-18 23:21:18 +08:00
|
|
|
|
2023-11-24 12:59:48 +08:00
|
|
|
-- 括号箭头
|
|
|
|
'yaocccc/nvim-hlchunk',
|
|
|
|
|
|
|
|
},
|
|
|
|
-- 多光标
|
|
|
|
{
|
2023-11-18 23:21:18 +08:00
|
|
|
'terryma/vim-multiple-cursors',
|
2023-11-24 12:59:48 +08:00
|
|
|
keys={"<c-n>", "<c-p>", "<c-x>"},
|
2023-10-08 23:27:05 +08:00
|
|
|
},
|
|
|
|
{
|
2023-11-24 12:59:48 +08:00
|
|
|
--格式整理
|
2023-10-08 23:27:05 +08:00
|
|
|
{
|
2023-11-24 12:59:48 +08:00
|
|
|
'junegunn/vim-easy-align',
|
|
|
|
config = function ()
|
|
|
|
G.map({
|
|
|
|
{"v", "ga", ":EasyAlign<CR>", {noremap = true}},
|
|
|
|
})
|
|
|
|
end
|
2023-10-08 23:27:05 +08:00
|
|
|
},
|
2023-10-09 16:14:40 +08:00
|
|
|
},
|
|
|
|
{
|
2023-11-24 12:59:48 +08:00
|
|
|
-- 注释插件
|
|
|
|
{
|
2023-11-19 07:56:01 +08:00
|
|
|
'tpope/vim-commentary',
|
2023-11-24 12:59:48 +08:00
|
|
|
}
|
2023-10-10 18:14:47 +08:00
|
|
|
},
|
2023-11-26 18:15:09 +08:00
|
|
|
{
|
|
|
|
'github/copilot.vim', -- github copilot
|
2023-11-27 18:11:11 +08:00
|
|
|
},
|
|
|
|
{
|
2023-11-27 23:08:28 +08:00
|
|
|
'windwp/nvim-autopairs',
|
|
|
|
event = "InsertEnter",
|
|
|
|
opts = {},-- this is equalent to setup({}) function
|
|
|
|
config = function ()
|
|
|
|
require('nvim-autopairs').setup({
|
|
|
|
disable_filetype = { "vim" },
|
|
|
|
})
|
|
|
|
end
|
|
|
|
},
|
2023-10-08 23:27:05 +08:00
|
|
|
}
|