How to format Ruby using rubyfmt? #13669
Unanswered
raphael-fournier
asked this question in
Q&A
Replies: 1 comment
-
FWIW, here's what I use: "format_on_save": {
"external": {
"command": "rubyfmt",
"arguments": ["--fail-fast"]
}
} |
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
-
Hello,
I'm trying to set up the Zed to automatically format Ruby files using
rubyfmt
upon saving.Here is the configuration I currently have in my
settings.json
:This configuration isn't working. I'm uncertain if the
{buffer_path}
argument is correctly recognized in this context, even though it works fine with theprettier
command. For more details on rubyfmt CLI specs, see its github readme.If anyone has successfully configured rubyfmt with Zed, could you share your configuration or point out what might be going wrong with mine?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions