]> git.eshelyaron.com Git - emacs.git/commit
Eglot: use Eldoc in eglot-hierarchy-mode
authorJoão Távora <joaotavora@gmail.com>
Tue, 11 Feb 2025 16:50:23 +0000 (16:50 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Feb 2025 10:52:19 +0000 (11:52 +0100)
commit3f15053ccda4b9128df59f61021fca3c2370570e
treedbe02c0c3e4b0c58dad91a1346c4e251d0de6605
parente0466a3827a591a407515dfb4a0809774b5cdff9
Eglot: use Eldoc in eglot-hierarchy-mode

Use it to show details of the thing at point, like the full
signature and the locus of the definition.

* lisp/progmodes/eglot.el: Add optional arg MODE.
(eglot--hierarchy-source-major-mode): New defvar.
(eglot--hierarchy-1): Adjust.
(eglot-hierarchy-mode): Set eldoc stuff.
(eglot-hierarchy-center-on-node): Cosmetic fix.
(eglot-hierarchy-detail-eldoc-function)
(eglot-hierarchy-locus-eldoc-function): New eldoc functions.

(cherry picked from commit 3fd0b802de20dc83b5d5236b6d458df73c9d4e77)
lisp/progmodes/eglot.el