Browse Source

Add Helix configuration to the editor section

pull/147/head
Camilo De La Torre 5 months ago committed by Fredrik Ekre
parent
commit
80ca401a1a
No known key found for this signature in database
GPG Key ID: DE82E6D5E364C0A2
  1. 15
      README.md

15
README.md

@ -282,6 +282,21 @@ This assumes that Runic is installed in the `@runic` shared project as suggested @@ -282,6 +282,21 @@ This assumes that Runic is installed in the `@runic` shared project as suggested
(push '(julia-mode . runic) apheleia-mode-alist)
```
#### Helix
Runic can be used as a formatter in [Helix](https://helix-editor.com/). Configure Helix's
`:format` command to use Runic for julia code by adding the following to the
`languages.toml` configuration file. 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 elsewhere.
```
[[language]]
name = "julia"
auto-format = false
formatter = { command = "julia" , args = ["--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)

Loading…
Cancel
Save