From a40e0bbddfcf47607ec71b1f3d653b69534f267c Mon Sep 17 00:00:00 2001 From: David Barton Date: Thu, 7 Aug 2025 11:23:30 +0100 Subject: [PATCH] Update README.md with instructions for Zed --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index e0e8dc5..98866b0 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,26 @@ auto-format = false formatter = { command = "julia" , args = ["--project=@runic", "--startup-file=no", "-e", "using Runic; exit(Runic.main(ARGS))"] } ``` +#### Zed + +Runic can be used as a formatter in [Zed](https://zed.dev/). You can configure Runic as a +local formatter by adding the following entry to your `settings.json`. This assumes Runic +is installed in the `@runic` shared project as suggested in the [Installation](#installation) +section above. Adjust the `--project` flag if you installed Runic somewhere else. + +```json +"languages": { + "Julia": { + "formatter": { + "external": { + "command": "julia", + "arguments": ["--project=@runic", "--startup-file=no", "-e", "using Runic; exit(Runic.main(ARGS))"] + } + } + } +} +``` + ### Git integration The [`git-runic`](https://github.com/fredrikekre/Runic.jl/blob/master/bin/git-runic)