Replies: 2 comments 1 reply
-
Are you looking for something like:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok literally I posted it, I got the solution that works for selection buffer:
this would apply |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
short question: how to make something like this work:
Reasoning behind it that I am developing in a large codebase that doesn't have a formatter configured by default, but still enjoy using one. So I run black on the pieces of the code that I add, and in Neovim it's done via selecting a piece of code and running
:'<,'>!black - 2>/dev/null
, which formats the code under selection.I wonder now, if there's an option to replicate that with
ruff
? I've tried working withruff format --stdin-filename
, but no luck just yet.Beta Was this translation helpful? Give feedback.
All reactions