-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support LSP range formatting #3209
Comments
Quoting relevant implementation discussion from archseer in the matrix space:
|
Looking at how vscode handles this, it seems to be something like the following:
|
+1 for this. I'm working in a big legacy C code base often adding functions or sections of code that I want to format without formatting the whole file. If Helix had this feature I'd be able to switch fully from Emacs to Helix. Don't really care about multiple selections, single selection (of multiple lines) is fine. |
Add basic range formatting capabilities when multiple selection are present. Related: helix-editor#3209 (comment)
Add basic range formatting capabilities when multiple selection are present. Related: helix-editor#3209 (comment)
Add basic range formatting capabilities when multiple selection are present. Related: helix-editor#3209 (comment)
Add basic range formatting capabilities when multiple selection are present. Related: helix-editor#3209 (comment)
Add basic range formatting capabilities when multiple selection are present. Related: helix-editor#3209 (comment)
Describe your feature request
Helix supports LSP document formatting (via the
:format
command, and on save). It would be nice to also support thetextDocument/rangeFormatting
LSP command to only format a range of lines.rust-analyzer
is an example of an LSP server that supports it.The text was updated successfully, but these errors were encountered: