nvim/lua/plugs/edit-plugs.lua
2023-12-10 12:16:25 +08:00

53 lines
964 B
Lua

return {
{
-- surround 和 wildfire 配合有神奇的效果
'tpope/vim-surround',
'gcmt/wildfire.vim',
-- 括号箭头
'yaocccc/nvim-hlchunk',
},
-- 多光标
{
'terryma/vim-multiple-cursors',
keys={"<c-n>", "<c-p>", "<c-x>"},
},
{
--格式整理
{
'junegunn/vim-easy-align',
config = function ()
G.map({
{"v", "ga", ":EasyAlign<CR>", {noremap = true}},
})
end
},
},
{
-- 注释插件
{
'tpope/vim-commentary',
}
},
{
'github/copilot.vim', -- github copilot
},
{
'windwp/nvim-autopairs',
event = "InsertEnter",
opts = {},-- this is equalent to setup({}) function
config = function ()
require('nvim-autopairs').setup({
disable_filetype = { "vim" },
})
end
},
{
"askfiy/nvim-picgo",
config = function()
require("nvim-picgo").setup()
end
}
}