girvain · 2022-06-20 08:57
Can't seem to get this to work. I want to see the method description in the selection candidates. I can get it to work using lsp-ui-doc-glance but this isn't what i want.
I've tried using all this in my config:
(setq lsp-ui-doc-enable t)
(setq lsp-completion-show-label-description t)
(setq lsp-ui-doc-show-with-cursor t)
(setq lsp-ui-doc-use-webkit t)
(setq lsp-completion-show-label-description t)
(setq lsp-completion-show-detail t)
​
Does lsp-mode just not do this?
yyoncho · 2022-06-20 11:04
https://github.com/company-mode/company-quickhelp or C-d to pop up in a separate buffer.
girvain · 2022-06-20 13:19
Gave this a shot and it worked for elisp but not any my lsp stuff. I wonder if lsp mode or lsp ui needs something disabled for it to work. I’ve currently just got all the defaults on?
yyoncho · 2022-06-20 13:24
Which server do you use? (the issue might be just server not having that info and not seding the documentation for the selected item).
girvain · 2022-06-20 13:31
Yeah I did sort of suspect this which is why I was trying on intelephense for Php and tsserver for JavaScript.
yyoncho · 2022-06-20 14:04
Can you try C-h when the completion is active? it should show the docs if any.
girvain · 2022-06-20 14:15
Yeah I get nothing when I do that. It’s weird that I get the completions and docs in the lsp-us-doc-glance though isn’t it? Any idea? I appreciate the help btw.
yyoncho · 2022-06-20 14:24
It is a different source.
girvain · 2022-06-23 09:03
got this working today after a config re-arrange. Thanks again