unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* eglot--post-self-insert-hook and native indentation
@ 2024-02-03 12:45 Juliusz Chroboczek
  0 siblings, 0 replies; only message in thread
From: Juliusz Chroboczek @ 2024-02-03 12:45 UTC (permalink / raw)
  To: emacs-devel

Hi,

I've just noticed the function eglot--post-self-insert-hook, which, to
my untrained eyes, is doing LSP-driven indentation.  Yet, it seems to
have no effect, the indentation style that's being used is the one
that's configured at the Emacs level.  (I've checked by manually
invoking eglot-format, which does indeed reformat my buffer in a style
different from the one that's configured in Emacs.)

Does that mean that the code is being indented twice, first by eglot and
then by Emacs, and therefore that we're doing useless work?  If that's
the case, then I would suggest changing the default vale of
eglot-ignored-server-capabilities to include :documentOnTypeFormattingProvider.

Thanks,

-- Juliusz




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-03 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03 12:45 eglot--post-self-insert-hook and native indentation Juliusz Chroboczek

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).