Use sumneko_lua language server, enter insert mode, try to change any parameters on the 4th line of the following lua code.
function common_on_attach(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local opts = { noremap = true, silent = true }
buf_set_keymap("n", "<localleader>gl", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts)
end
Expected behavior
No errors occur, we can change the parameters as desired.
Steps to reproduce
Use
sumneko_lua
language server, enterinsert
mode, try to change any parameters on the 4th line of the followinglua
code.Expected behavior
No errors occur, we can change the parameters as desired.
Actual behavior
The plugin raises the error: