emacs-devel
[Top][All Lists]
Advanced

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

Re: Renaming eglot -- or at least add an alias?


From: Stephen Leake
Subject: Re: Renaming eglot -- or at least add an alias?
Date: Wed, 12 Oct 2022 17:26:22 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt)

Yuan Fu <casouri@gmail.com> writes:

> Thanks for you input. I don’t think eglot (and LSP the protocol)
> handles font-lock and indent, 

The LSP protocol supports font-lock via SemanticTokens. This is
relatively new, and the released elgot doesn't support it yet.

LSP supports indent via DocumentFormatting. Eglot supports this via
eglot-format.

I don't know how many language servers support DocumentFormatting;
ada_language_server only supports formatting the whole document, not
just a region, so it is not useful for Emacs indent. ada_language_server
also has poor error recovery, and refuses to format even when it can
recover from a syntax error, making it even less useful.

-- 
-- Stephe



reply via email to

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