Skip to content

:editor format no longer supports onsave lsp formatting #7490

@vincowl

Description

@vincowl

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.
  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
  • The issue can be reproduced on the latest available commit of Doom.
  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

When I save a buffer using a lsp server that has a format capability, doom should launch the lsp-formater through +format/buffer

Current behavior

When I save a buffer using a lsp server that has a format capability, doom launches apheleia--format-after-save directly

Steps to reproduce

  1. Be sure to have prettier not installed on your system (used by apheleia)
  2. Open Emacs
  3. Open a badly formated html file (for instance) with html-ls installed
  4. Save the file
  5. The file should not be formated

System Information

https://pastebin.com/RZQYHPaD

Metadata

Metadata

Assignees

Labels

is:regressionA bug introduced in a recent and unreleased changemodule:editor/formatPertains to Doom's :editor format module

Type

No type

Projects

Status

Resolved

Relationships

None yet

Development

No branches or pull requests

Issue actions