diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 1837837..ffb1072 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -126,7 +126,7 @@ map("n", "", "gcc", { noremap = false }) map("v", "", "gcc", { noremap = false }) -- lsp 回调函数快捷键设置 -pluginKeys.maplsp = function(mapbuf) +pluginKeys.mapLSP = function(mapbuf) -- rename mapbuf("n", "rn", "lua vim.lsp.buf.rename()", opt) -- code action diff --git a/lua/lsp/lang/jsonls.lua b/lua/lsp/lang/jsonls.lua index 7934834..b21299c 100644 --- a/lua/lsp/lang/jsonls.lua +++ b/lua/lsp/lang/jsonls.lua @@ -21,7 +21,7 @@ local opts = { end -- local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- 绑定快捷键 - require("keybindings").maplsp(buf_set_keymap) + require("keybindings").mapLSP(buf_set_keymap) end, } diff --git a/lua/lsp/lang/lua.lua b/lua/lsp/lang/lua.lua index 755ee05..24fb67b 100644 --- a/lua/lsp/lang/lua.lua +++ b/lua/lsp/lang/lua.lua @@ -39,7 +39,7 @@ local opts = { end -- local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- 绑定快捷键 - require("keybindings").maplsp(buf_set_keymap) + require("keybindings").mapLSP(buf_set_keymap) end, } diff --git a/lua/lsp/lang/rust.lua b/lua/lsp/lang/rust.lua index 0526174..991dd0f 100644 --- a/lua/lsp/lang/rust.lua +++ b/lua/lsp/lang/rust.lua @@ -11,7 +11,7 @@ local opts = { end -- local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- 绑定快捷键 - require("keybindings").maplsp(buf_set_keymap) + require("keybindings").mapLSP(buf_set_keymap) end, } diff --git a/lua/lsp/lang/tsserver.lua b/lua/lsp/lang/tsserver.lua index 40d7e7e..441aaff 100644 --- a/lua/lsp/lang/tsserver.lua +++ b/lua/lsp/lang/tsserver.lua @@ -11,7 +11,7 @@ local opts = { end -- local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- 绑定快捷键 - require("keybindings").maplsp(buf_set_keymap) + keybindings.mapLSP(buf_set_keymap) end, }