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:
@@ -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}"],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user