This commit is contained in:
newbie 2023-12-15 12:15:39 +08:00
parent c91084492b
commit 3c09b60016
4 changed files with 23 additions and 15 deletions

View File

@ -9,7 +9,7 @@ return {
require('plugs.theme'), -- theme
require("plugs.edit-plugs"),
require("plugs.hop"),
require("plugs.toggleterm")
}

View File

@ -11,17 +11,17 @@ return {
-- 多光标
{
'terryma/vim-multiple-cursors',
keys={"<c-n>", "<c-p>", "<c-x>"},
keys = { "<c-n>", "<c-p>", "<c-x>" },
},
{
--格式整理
--格式整理
{
'junegunn/vim-easy-align',
config = function ()
G.map({
{"v", "ga", ":EasyAlign<CR>", {noremap = true}},
})
end
config = function()
G.map({
{ "v", "ga", ":EasyAlign<CR>", { noremap = true } },
})
end
},
},
{
@ -31,13 +31,13 @@ return {
}
},
{
'github/copilot.vim', -- github copilot
'github/copilot.vim', -- github copilot
},
{
'windwp/nvim-autopairs',
event = "InsertEnter",
opts = {},-- this is equalent to setup({}) function
config = function ()
opts = {}, -- this is equalent to setup({}) function
config = function()
require('nvim-autopairs').setup({
disable_filetype = { "vim" },
})
@ -46,7 +46,15 @@ return {
{
"askfiy/nvim-picgo",
config = function()
require("nvim-picgo").setup()
G.map({
{ 'n', '<leader>pp', ':UploadClipboard<CR>' }
})
require("nvim-picgo").setup()
end
},
{
-- hop
require("plugs.hop")
}
}

View File

@ -52,7 +52,7 @@ return {
{ 'n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>' },
{ 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>' },
{ 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>' },
{ 'n', '<leader>i', '<cmd>lua vim.lsp.buf.format()<CR>' },
{ 'n', '<cs-i>', '<cmd>lua vim.lsp.buf.format()<CR>' },
})
end
@ -133,7 +133,7 @@ return {
}
require("symbols-outline").setup(opts)
G.map({
{ "n", "cs-o>", "<cmd>SymbolsOutline<cr>" },
{ "n", "<cs-o>", "<cmd>SymbolsOutline<cr>" },
})
end
},

View File

@ -78,6 +78,6 @@ return {
]]
}
end,
}
},
}