hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
575 stars 24 forks source link

signature-help completion not working with R languageserver #9

Open fisher-j opened 2 years ago

fisher-j commented 2 years ago

I'm trying to use automatic signature completion with the R language server

I'm using the kickstart.nvim init.lua but I've added use 'hrsh7th/cmp-nvim-lsp-signature-help' to 'packer'.startup and { name = 'nvim_lsp_signature_help' }, as the first entry to sources.

Other sources are working properly and I can get manual signature help completion using vim.lsp.buf.signature_help()

boning-w commented 2 years ago

Also not working with Java language server: jdtls. When I try C filetype it work fine, but not work for java filetype.

benjaminmoon commented 1 year ago

I also have this issue with the R language server. lsp_signature.nvim is an alternative to mitigate this, but I have to tackle working between the two plugins then and I'd rather avoid that.

Is there a way to open the R LSP signature info automatically?

adaszko commented 1 year ago

Same with rust-analyzer. Does cmp-nvim-lsp-signature-help rely on some particular language server capability?

sandersantema commented 1 year ago

You can trigger it manually with :lua vim.lsp.buf.signature_help() afaik.

The weird thing about the R language server is that contrary to the behavior of for instance the lua language server or pyright the function only works if the cursor is inside the parenthesis of the function call whereas for the aforementioned language servers it works with the cursor on the parenthesis as well.

See here:

Working: image

Not Working: image

It might be an error on the side of the R language server, i.e. not triggering on a parenthesis isn't standard compliant or an edge case which isn't dealt with by this plugin.

DasOhmoff commented 1 year ago

I have the same issue with java as well. Would be nice to have some solution here

wywl99 commented 1 year ago

I also have this issue with the R language server. lsp_signature.nvim is an alternative to mitigate this, but I have to tackle working between the two plugins then and I'd rather avoid that.

Is there a way to open the R LSP signature info automatically? I also have the same problem, if you find a solution please tell me about it, thank you!

raffaem commented 3 weeks ago

Any news on this?