Replies: 1 comment 1 reply
-
Technically,
Let me think for some time whether we want to have that configurable for on hover. We have such a configuration for signature help. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've stumbled upon a minor inconvenience in regard to the way eldoc displays the
document/onHover
text.Currently, there is a choice between showing 1 line and showing the entire text via
lsp-eldoc-render-all
.Metals (the language server for Scala) sometimes shows the signature on one line, and at other times it's a fully formatted Markdown text, having as first line
Expression type:
.Here as one line:

Here as formatted text:

I don't really like the minibuffer taking so much space to display hover, I prefer just having the signature, and when I need more documentation, calling
lsp-ui-doc-glance
.So, I have tweaked the
lsp-clients-extract-signature-on-hover
to show a user-defined number of lines. Somewhat following #2613, this could be a way to accommodate to the format imposed by the LSP (if it's non-"standard"), effectively letting users tweak "on-the-fly" the quantity of information given by eldoc.Would this change be appreciated in lsp-mode? (I can submit a PR.)
Many thanks to everyone involved in the project for this great suite of packages.
Beta Was this translation helpful? Give feedback.
All reactions