Closed NullVoxPopuli closed 2 weeks ago
Hello.
According to tho provided configuration, the signatures should be shown automatically (display_automatically = true
). I assume that after it gets closed (by pressing <A-s>
), pressing <A-s>
does not show the signature again.
Trying your configuration, the signature gets shown automatically, pressing (in insert mode) <A-s>
closes it, pressing again (in insert mode) <A-s>
I get the :LspOverloadsSignature
put in the file at the cursor's position and then a new line.
Changing
vim.api.nvim_buf_set_keymap(bufnr, "i", "<A-s>", ":LspOverloadsSignature<CR>", { noremap = true, silent = true })
to
vim.api.nvim_buf_set_keymap(bufnr, 'i', "<A-s>", "<C-o>:LspOverloadsSignature<CR>", { noremap = true, silent = false })
makes it so that the signature is shown again.
Not sure whether that suffices as an answer.
P.S. This was done on Windows 11, nvim 0.9.5, plugin's version 1.3.1
Hi @NullVoxPopuli - <A-s>
is specific for the left alt key, so yes, the right alt key (ALTGR on most keyboards I believe) will be a different mapping altogether.
As for why it isn't working for you, I have a couple of suggestions based on what I can and can't see from your supplied config:
on_attach
function of the LSP server config? If it isn't then this would explain why you are seeing this behaviour.i
keymap for insert mode, change the mapping command to be <cmd>LspOverloadsSignature<CR>
. Assuming this is in the on_attach
function, this should work better for insert mode to show and hide the signature popup.If the above don't work, then you can log out the client.server_capabilities
and see if your LSP capabilities actually include the signatureHelpProvider at the point at which you perform the check for it.
To check what is mapped to <A-s>
you can use command mode - :nmap <A-s>
which should display your current mapping in normal mode for Alt-s. It will be displayed as <M-s>
in the command output though.
@NullVoxPopuli - Just checking if you managed to sort your issue out in the end? There have been a couple of plugin updates since your question, so potentially, a recent fix may have resolved your problem.
I have this:
but maybe I don't know what key
A
is? I've been pressing alt-s, and it doesn't seem to show the signature. Screencast from 2024-04-03 23-55-21.webmalso left alt seems to behave differently from right alt? is there a way to inspect what these are bound to so I can see if I can unbind them?