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:
João Távora 2023-03-23 09:04:27 +00:00
parent e19994fe8c
commit 67c1e6e89c

View file

@ -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))