[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/eldoc-eglot-rework 269980dbbc3 3/4: Have Eglot inform ElDoc abou
From: |
João Távora |
Subject: |
scratch/eldoc-eglot-rework 269980dbbc3 3/4: Have Eglot inform ElDoc about overly long 'hover' docs |
Date: |
Thu, 23 Mar 2023 09:57:32 -0400 (EDT) |
branch: scratch/eldoc-eglot-rework
commit 269980dbbc31b67f9f6c127b64def714a55c4495
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Have Eglot inform ElDoc about overly long 'hover' docs
* lisp/progmodes/eglot.el (eglot-hover-eldoc-function): Include :noecho
---
lisp/progmodes/eglot.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 058bcec1489..c17373a1ad8 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -3149,7 +3149,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
+ :noecho (and info (string-match "\n"
info))))))
:deferred :textDocument/hover))
(eglot--highlight-piggyback cb)
t))