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:
parent
d3da0a809e
commit
0555bbd0ec
1 changed files with 19 additions and 0 deletions
|
@ -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}"],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue