emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add `eglot-automatic-inlay-hints` customizable variable


From: Brennan Vincent
Subject: Re: [PATCH] Add `eglot-automatic-inlay-hints` customizable variable
Date: Fri, 28 Apr 2023 16:25:16 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0


On 2023-04-28 14:01, João Távora wrote:
> On Wed, Apr 26, 2023 at 5:34 PM Brennan Vincent <brennan@umanwizard.com> 
> wrote:
> 
>> I want inlay hints to be off by default, but be able to be turned on 
>> per-buffer
>> as desired. Adding inlay hints to eglot-ignored-server-capabilities achieves 
>> the
>> former, but makes the latter impossible.
> 
> 
> Can't you add "(eglot-inlay-hints-mode -1)" to eglot-managed-mode-hook?

I felt it was wasteful because then entering eglot-managed-mode will cause
eglot-inlay-hints-mode to be turned on, and then immediately turned off.

> 
> Also a defcustom for buffer-local behaviour isn't really very
> standard.  But you can use if like that, of course.  In which case, can't
> you use the existing eglot-ignored-server-capabilities like that?

I'm not sure I understand the suggestion. Currently if I add "Inlay Hints" to
that variable, then it is impossible to use them in any buffer. I don't know of
a way to set this variable such that it only takes effect in a subset of 
buffers.

> João




reply via email to

[Prev in Thread] Current Thread [Next in Thread]