Browse Source

Merge 3db3253037 into da8956461c

pull/165/merge
Kristian Holme 2 days ago committed by GitHub
parent
commit
a5af3ec5ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      README.md

11
README.md

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

Loading…
Cancel
Save