Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting #5302

Merged
merged 1 commit into from Jul 29, 2021

Conversation

holyfight6
Copy link
Contributor

A lot of lsp servers don't support textDocument/rangeFormatting but support textDocument/formatting(eg: rust-analyzer). The fallback formatter has some issues (like in rust-mode it won't respect the project's cargo files). I think it's better to use lsp as the default formatter as long as the lsp server support file formating.

@hlissner hlissner added is:feature Adds or requests new features, or extends existing ones module:editor/format Pertains to Doom's :editor format module module:tools/lsp Pertains to Doom's :tools lsp module labels Jul 27, 2021
@hlissner hlissner merged commit 5610774 into doomemacs:develop Jul 29, 2021
@hlissner
Copy link
Member

Makes sense to me, thanks!

@holyfight6 holyfight6 deleted the format-all-lsp branch July 29, 2021 01:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:feature Adds or requests new features, or extends existing ones module:editor/format Pertains to Doom's :editor format module module:tools/lsp Pertains to Doom's :tools lsp module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants