-
Notifications
You must be signed in to change notification settings - Fork 20
Ineffective range formatting #42
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Hey there, thanks for the great plugin!
It seems that range formatting isn't really effective with python-lsp-black. If you try to format a few lines inside a function, nothing will change:

It does work great if you format the whole function, though:

Also, it will trim whitespaces if you select those (notice the line returns that disappeared between the two functions):

I previously used a (non-LSP) package based on black-machiatto that gave excellent results for that kind of operations.
Would you consider using black-machiatto in python-lsp-black as well for range formatting?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request