[Eldoc] Disable eldoc in message area, and only show doc details when I invoke eldoc-doc-buffer? #691
-
The current Eglot default enables eldoc and constantly shows the signature/details of the variable/function under my cursor, which are often multiple lines. This results in a visual distraction IMHO. Especially when I'm moving my cursor around and the echo area just flashes in and out with different documentation. Screenshot: However, I love the functionality when I can invoke eldoc-doc-buffer manually (currently bound to K) and show the details of function/variable under point in a side buffer, such as: I was wondering if I can suppress the automatic-showing-in-echo-area-behavior, and only show details when I manually invoke eldoc-doc-buffer? Currently, the only solution I can think is to set eldoc-idle-delay to a massive number, so it's never reached. E.g. (setq eldoc-idle-delay most-positive-fixnum) Thought this solution feels like an ugly hack... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 31 replies
-
I think you can try, if using the latest version of
|
Beta Was this translation helpful? Give feedback.
-
First of all, there is a bug in Eglot: it doesn't honor the default value of @ianpan870102 Try Regarding the latter, how would you like if the signature hints did show up in the echo area, but the "hover" tips (like the doc of the identifier at point) did not? All of the remaining blinking seems to come from the latter, and I'm not sure how easy it is to fix in Eglot. |
Beta Was this translation helpful? Give feedback.
I think you can try, if using the latest version of
eldoc.el
.(setq eldoc-echo-area-prefer-doc-buffer t)