Skip to content

Prefer language server formatting - #16181

Open
Boulea7 wants to merge 1 commit into
helix-editor:masterfrom
Boulea7:fix/9543-prefer-lsp-format
Open

Prefer language server formatting#16181
Boulea7 wants to merge 1 commit into
helix-editor:masterfrom
Boulea7:fix/9543-prefer-lsp-format

Conversation

@Boulea7

@Boulea7 Boulea7 commented Aug 13, 2026

Copy link
Copy Markdown

Summary

  • prefer formatting-capable language servers over configured external formatters
  • use the external formatter when LSP formatting is unavailable or disabled with except-features = ["format"]
  • document the precedence and cover both paths with integration tests

Closes #9543

Test plan

  • cargo test -p helix-term --features integration --test integration test::commands::write::
  • cargo test -p helix-view
  • cargo clippy -p helix-view -p helix-term --features helix-term/integration --tests -- -D warnings
  • cargo fmt --all -- --check
  • cargo xtask docgen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prefer language server formatting to external formatters

1 participant