Skip to content

Commit

Permalink
Add section on usage with Zed editor
Browse files Browse the repository at this point in the history
Example integration with the Zed editor
  • Loading branch information
LucasKuhn authored Feb 20, 2024
1 parent a0955e0 commit d55b3ba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ let g:ale_fixers = {
\}
```

### With [Zed](https://zed.dev/) editor

With the gem installed, configure `settings.json` to use the formatter as an external command

```json
"language_overrides": {
"ERB": {
"formatter": {
"external": {
"command": "erb-format",
"arguments": ["--stdin", "--print-width", "80"]
}
}
}
}
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
Expand Down

0 comments on commit d55b3ba

Please sign in to comment.