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.theme'), -- theme
require("plugs.edit-plugs"), require("plugs.edit-plugs"),
require("plugs.hop"),
require("plugs.toggleterm") require("plugs.toggleterm")
} }

View File

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

View File

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

View File

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