From 3c09b600162a95ea067e4536f832c8f518a5de6c Mon Sep 17 00:00:00 2001 From: newbie Date: Fri, 15 Dec 2023 12:15:39 +0800 Subject: [PATCH] update --- lua/plugs.lua | 2 +- lua/plugs/edit-plugs.lua | 30 +++++++++++++++++++----------- lua/plugs/nvim-lspconfig.lua | 4 ++-- lua/plugs/theme.lua | 2 +- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/lua/plugs.lua b/lua/plugs.lua index 42048f6..f91cfc9 100644 --- a/lua/plugs.lua +++ b/lua/plugs.lua @@ -9,7 +9,7 @@ return { require('plugs.theme'), -- theme require("plugs.edit-plugs"), - require("plugs.hop"), + require("plugs.toggleterm") } diff --git a/lua/plugs/edit-plugs.lua b/lua/plugs/edit-plugs.lua index 340d734..2a65c21 100644 --- a/lua/plugs/edit-plugs.lua +++ b/lua/plugs/edit-plugs.lua @@ -11,17 +11,17 @@ return { -- 多光标 { 'terryma/vim-multiple-cursors', - keys={"", "", ""}, + keys = { "", "", "" }, }, { - --格式整理 + --格式整理 { 'junegunn/vim-easy-align', - config = function () - G.map({ - {"v", "ga", ":EasyAlign", {noremap = true}}, - }) - end + config = function() + G.map({ + { "v", "ga", ":EasyAlign", { 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', 'pp', ':UploadClipboard' } + }) + require("nvim-picgo").setup() end + }, + { + -- hop + require("plugs.hop") + } } diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index c75f3e2..f2fd686 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -52,7 +52,7 @@ return { { 'n', 'gD', 'lua vim.lsp.buf.declaration()' }, { 'n', 'gi', 'lua vim.lsp.buf.implementation()' }, { 'n', 'gr', 'lua vim.lsp.buf.references()' }, - { 'n', 'i', 'lua vim.lsp.buf.format()' }, + { 'n', '', 'lua vim.lsp.buf.format()' }, }) end @@ -133,7 +133,7 @@ return { } require("symbols-outline").setup(opts) G.map({ - { "n", "cs-o>", "SymbolsOutline" }, + { "n", "", "SymbolsOutline" }, }) end }, diff --git a/lua/plugs/theme.lua b/lua/plugs/theme.lua index c7211d3..4e574d6 100644 --- a/lua/plugs/theme.lua +++ b/lua/plugs/theme.lua @@ -78,6 +78,6 @@ return { ]] } end, - } + }, }