Browse Source

Update README.md to reflect direct availability of Runic in conform and simplify configuration instructions.

pull/165/head
Kristian Holme 3 months ago
parent
commit
21524e9fa7
  1. 11
      README.md

11
README.md

@ -212,19 +212,10 @@ Runic can be used as a formatter in [Neovim](https://neovim.io/) using @@ -212,19 +212,10 @@ Runic can be used as a formatter in [Neovim](https://neovim.io/) using
[conform.nvim](https://github.com/stevearc/conform.nvim). Refer to the conform.nvim
repository for installation and setup instructions.
Runic is not (yet) available directly in conform so the following configuration needs
to be passed to the setup function. 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.
Runic is available directly in conform and can be configured as follows. This assumes Runic is installed in the `@runic` shared project as suggested in the [Installation](#installation) section above.
```lua
require("conform").setup({
formatters = {
runic = {
command = "julia",
args = {"--project=@runic", "--startup-file=no", "-e", "using Runic; exit(Runic.main(ARGS))"},
},
},
formatters_by_ft = {
julia = {"runic"},
},

Loading…
Cancel
Save