Browse Source

🐛 FIX: keybindings rename maplsp to mspLSP

pull/174/head
Xin.Chen 3 years ago
parent
commit
ce79b6b25b
  1. 2
      lua/keybindings.lua
  2. 2
      lua/lsp/lang/jsonls.lua
  3. 2
      lua/lsp/lang/lua.lua
  4. 2
      lua/lsp/lang/rust.lua
  5. 2
      lua/lsp/lang/tsserver.lua

2
lua/keybindings.lua

@ -126,7 +126,7 @@ map("n", "<C-_>", "gcc", { noremap = false })
map("v", "<C-_>", "gcc", { noremap = false })
-- lsp 回调函数快捷键设置
pluginKeys.maplsp = function(mapbuf)
pluginKeys.mapLSP = function(mapbuf)
-- rename
mapbuf("n", "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opt)
-- code action

2
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,
}

2
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,
}

2
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,
}

2
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,
}

Loading…
Cancel
Save