From d55b3bad4e4954e4e36ab4f1a25b0def1ef5cb56 Mon Sep 17 00:00:00 2001 From: Lucas Kuhn Date: Tue, 20 Feb 2024 09:43:44 -0300 Subject: [PATCH] Add section on usage with Zed editor Example integration with the Zed editor --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 1428134..ee062df 100644 --- a/README.md +++ b/README.md @@ -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.