emacs-devel
[Top][All Lists]
Advanced

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

Re: User experience: eglot configuration


From: Harald Kirsch
Subject: Re: User experience: eglot configuration
Date: Fri, 31 Jan 2025 10:51:02 +0100
User-agent: Mozilla Thunderbird



On 30.01.25 11:00, Rudolf Schlatte wrote:
Harald Kirsch <pifpafpuf@gmx.de> writes:

On 29.01.25 21:01, chad wrote:

On Wed, Jan 29, 2025 at 8:06 AM Pedro Andres Aranda Gutierrez
<paaguti@gmail.com <mailto:paaguti@gmail.com>> wrote:

     ... Or rephrasing:
     if the LSP wants JSON, why elisp -> JSON and not JSON directly?
     Would be easier
     to debug...


Am I misunderstanding, or are you saying that it would be easier to
write raw JSON than lisp?

Yes. 100%! In particular for people who would use Emacs as a code editor
or IDE replacement for their language, one which much more likely had
them look at JSON configs already in whatever context, than at Lisp.

Is there an existing standard for such language server configuration
info, or would it be necessary to invent and document a JSON format for
this?

See
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initializeParams

There is the

/**
 * User provided initialization options.
 */
initializationOptions?: LSPAny;

part where each server has its own things to configure, obviously very
much depending on the programming language.

Harald

--
--------------+---------------------------------------
Harald Kirsch | HaraldKi@nrw.social



reply via email to

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