Allow to not cut the signature received on hover
Some servers (i.e. the ocamllsp one) return only the signature on hover (without the documentation) but tend to put newlines between the different items. With the current implementation of lsp-clients-extract-signature-on-hover, the displayed signature will only contain the first item
config1:string list ->
config2:string list -> config3:string list -> int -> int -> int
will then be rendered as
config1:string list ->
With the new implementation, a custom variable allows to take control over this behaviour and the function has been reimplemented to either return the previous result or return the signature with newlines replaced by spaces
I need to check some things, don't review it right now ;-)
you may do it like this: https://github.com/yyoncho/lsp-mode/blob/master/clients/lsp-clangd.el#L267
Thanks a lot @yyoncho for the pointer, that's much better for me!
Can you confirm that this is still relevant?
Can you confirm that this is still relevant?
Still relevant, yes, rewrote the function in my .emacs.d until this is merged :-)
Thank you for contributing to lsp-mode, and sorry for the delay.