Getting JuliaFormatter to work with helix editor #11510
Unanswered
vishalpaudel
asked this question in
Troubleshooting
Replies: 2 comments 2 replies
-
possibly related: #3596 |
Beta Was this translation helpful? Give feedback.
2 replies
-
FWIW I found the following to work fine:
(passing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When doing
$ hx --health julia # I get: Configured language servers: ✓ julia: /home/vishal/.juliaup/bin/julia Configured debug adapter: None Configured formatter: None Highlight queries: ✓ Textobject queries: ✓ Indent queries: ✓
So, I would like to setup a formatter for julia. In this case I am using JuliaFormatter.
When doing
$ julia -e 'using JuliaFormatter; format(ARGS[1]);' src/main.jl
The file is successfully formatted automatically.
But editing helix-config/languages.toml, to include:
And manually running helix::format inside helix on the same file, I get helix-log julia error:
Which hints that the formatter does not recieve the path of the file as an argument? How should I go about adding the said JuliaFormatter to helix? What is expected off of the formatter command? What is passed to the formatter command?
Beta Was this translation helpful? Give feedback.
All reactions