Skip to content

how to make the minibuffer grow when invoking eldoc with eldoc-display-in-echo-area enabled #1458

Answered by joaotavora
fommil asked this question in Q&A
Discussion options

You must be logged in to vote

I think eldoc-display-in-echo-area, the display function, is already setup to display the "short" version of each documentation function in eldoc-documentation-functions (there may be many, and Eglot normally uses 3) . eldoc-display-in-buffer is not and it displays the full version. So eldoc-display-in-echo-area displays multiple short versions of each doc function, and it is that pre-filtered whole that honours eldoc-echo-area-use-multiline-p ,not each documentation excerpt separately.

Therefore, what you possibly want is to replace one of Eglot's documentation functions with one of your own doing:

(defun my/special-eglot-hover-function (cb)
  "Same as `eglot-hover-eldoc-function`, but t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fommil
Comment options

@joaotavora
Comment options

Answer selected by fommil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants