HX 0.5: shortcut = (format_selections) doesn't work / missing? #1079
Replies: 3 comments 4 replies
-
Both |
Beta Was this translation helpful? Give feedback.
-
helix/helix-term/src/commands.rs Lines 4233 to 4279 in fa0cb01 Note that a lot of LSPs also don't implement formatting with ranges (I don't think rust-analyzer does yet) so we should add a fallback that uses tree-sitter indentation (should be as easy as calculating an indent level for each line, and adding or deleting indentation based on that value). helix/helix-core/src/indent.rs Lines 483 to 493 in fa0cb01 |
Beta Was this translation helpful? Give feedback.
-
If I may resurrect this one... I was about to make a new enhancement issue for this, but thought this might be better to try first. I'm using Helix with some python code, the recommended LSP, and Black. Is this as-intended behaviour? Or would I be right to think of this as a bug? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to format a selection with
=
but that doesn't do anything. Using command mode, I only seeformat
but notformat_selections
Is there any trick how to use this feature?
Beta Was this translation helpful? Give feedback.
All reactions