From: Eli Zaretskii <eliz@gnu.org>
To: "Dimitri Belopopsky" <dimitri@belopopsky.com>,
"João Távora" <joaotavora@gmail.com>
Cc: 61066@debbugs.gnu.org
Subject: bug#61066: [PATCH] Add inlay hint support to eglot
Date: Thu, 26 Jan 2023 08:29:02 +0200 [thread overview]
Message-ID: <83a625g66p.fsf@gnu.org> (raw)
In-Reply-To: <CA+46MXakiruOtNK+x4teHeKgh0JgrrJXALQGC0VW=1TA=AtCsA@mail.gmail.com> (message from Dimitri Belopopsky on Wed, 25 Jan 2023 23:34:02 +0100)
> From: Dimitri Belopopsky <dimitri@belopopsky.com>
> Date: Wed, 25 Jan 2023 23:34:02 +0100
>
> I've been working on adding support for inlay hints inside eglot using overlays.
> Here is a working patch, but I'm still missing a few things:
>
> - I can't figure out a way to show the hints on a document without causing lags or timeouts from the lsp
> server
> - I'm currently updating the hints by sending the whole file each time (to make sure all hints get updated
> correctly). I'm not sure on how to make this more efficient (or if it even necessary).
>
> On the implementation side:
> - implemented with overlays as a minor model, enabled by default
> - shows all hints supported by the protocol
> - there is a customisation to disable the minor mode if the user doesn't want the feature
>
> I'd love to get a few points to finish this patch, and of course any ideas and feedbacks are welcome!
Thank you for working on this important feature.
AFAIU, inlay hints provide information of the same kind as ElDoc and
in similar manner from the display and UX POV. So I think this
feature should work via ElDoc, not as a separate from-the-scratch
implementation. ElDoc is already capable of using Eglot-supplied
information, so perhaps the only feature we need to add is the
capability of ElDoc to (optionally) display the information in
overlays near point. (I thought we already had such a capability in
eldoc.el, but it looks like I was dreaming, because I cannot find it
there.)
The advantage of basing this on ElDoc is that then we will be able to
provide similar features from information sources other than Eglot.
João, WDYT?
next prev parent reply other threads:[~2023-01-26 6:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-25 22:34 bug#61066: [PATCH] Add inlay hint support to eglot Dimitri Belopopsky
2023-01-26 6:29 ` Eli Zaretskii [this message]
2023-01-26 12:30 ` João Távora
2023-01-27 18:44 ` Dimitri Belopopsky
2023-01-28 1:58 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83a625g66p.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=61066@debbugs.gnu.org \
--cc=dimitri@belopopsky.com \
--cc=joaotavora@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.