ruby: Document how to use erb-formatter for ERB files (#33872)

Hi! This is a small pull request that adds a new section about
configuring the `erb-formatter` for formatting ERB files. Thanks.

Release Notes:

- N/A
This commit is contained in:
Vitaly Slobodin 2025-07-05 01:50:51 +02:00 committed by GitHub
parent d3da0a809e
commit 0555bbd0ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -379,3 +379,22 @@ The Ruby extension provides a debug adapter for debugging Ruby code. Zed's name
}
]
```
## Formatters
### `erb-formatter`
To format ERB templates, you can use the `erb-formatter` formatter. This formatter uses the [`erb-formatter`](https://rubygems.org/gems/erb-formatter) gem to format ERB templates.
```jsonc
{
"HTML/ERB": {
"formatter": {
"external": {
"command": "erb-formatter",
"arguments": ["--stdin-filename", "{buffer_path}"],
},
},
},
}
```