Skip to content

Commit

Permalink
Merge pull request #45 from LucasKuhn/patch-1
Browse files Browse the repository at this point in the history
Add section on usage with Zed editor
  • Loading branch information
elia committed Feb 26, 2024
2 parents a0955e0 + d55b3ba commit 149a0a2
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 149a0a2

Please sign in to comment.