nvim/lua/plugs/edit-plugs.lua
2023-12-15 12:15:39 +08:00

61 lines
1.0 KiB
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()
G.map({
{ 'n', '<leader>pp', ':UploadClipboard<CR>' }
})
require("nvim-picgo").setup()
end
},
{
-- hop
require("plugs.hop")
}
}