Eglot: inform ElDoc about overly long 'hover' docs
* lisp/progmodes/eglot.el (eglot-hover-eldoc-function): Include :echo info in return value.
This commit is contained in:
parent
e19994fe8c
commit
67c1e6e89c
1 changed files with 2 additions and 1 deletions
|
@ -3169,7 +3169,8 @@ for which LSP on-type-formatting should be requested."
|
|||
(eglot--when-buffer-window buf
|
||||
(let ((info (unless (seq-empty-p contents)
|
||||
(eglot--hover-info contents range))))
|
||||
(funcall cb info :buffer t))))
|
||||
(funcall cb info
|
||||
:echo (and info (string-match "\n" info))))))
|
||||
:deferred :textDocument/hover))
|
||||
(eglot--highlight-piggyback cb)
|
||||
t))
|
||||
|
|
Loading…
Add table
Reference in a new issue