ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.03k stars 58 forks source link

Error: attempt to index field 'documentation' (a nil value) #95

Closed spindensity closed 3 years ago

spindensity commented 3 years ago

Steps to reproduce

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.

Actual behavior

The plugin raises the error: Snipaste_2021-09-07_20-57-43

ray-x commented 3 years ago

Would you check if the issue still there?

spindensity commented 3 years ago

Would you check if the issue still there?

The fix has solved the problem, thanks.