just-formatter
is a simple wrapper for just
. Since just --dump
does not support reading files from standard input, unexpected issues may arise when using it as a formatter for editors like Helix Editor.
Run the following command:
cargo install just-formatter
Ensure that just
is installed.
cat <justfile> | just-formatter
Example languages.toml
:
[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter" }
Use --skip-check
/-s
flag. An example helix config:
[[language]]
name = "just"
auto-format = true
formatter = { command = "just-formatter", args = ["--skip-check"] }