emacs-devel
[Top][All Lists]
Advanced

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

Re: Eglot to core [Was: rmsbolt.el [Was: Colorful line numbers]]


From: João Távora
Subject: Re: Eglot to core [Was: rmsbolt.el [Was: Colorful line numbers]]
Date: Tue, 26 Jul 2022 09:21:21 +0100

On Tue, Jul 26, 2022 at 9:12 AM Felician Nemeth <felician.nemeth@gmail.com> wrote:
> Yes, I think this is a great idea to allow the user to configure
> server-specific things easily and automatically save it
> .dir-locals.el.
>
> The question is how.  Not sure if variables is the way to go.

Rust-analyzer can emit the definition of its configuration variables as
a JSON schema.  There are toml and yaml servers that hopefully
understand this schema description.

So one possibility for Eglot is to help the user to edit a
project/rust.toml or a global ~/.emacs.d/eglot/rust.toml file and
arrange to call eglot-signal-didChangeConfiguration when the user saves
the file.

I don't disagree with this, though it seems different from your first idea.
When is the .dir-locals.el written in your example, or were you imagining
a use with `dir-locals-set-class`?
Regardless,  if this works, why shouldn't it be rust-mode.el's job to do exactly
this?  Editing "toml" files is outside the scope of LSP. 

João

reply via email to

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