mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00

This formatter is formatting via [treefmt](https://numtide.github.io/treefmt). This is useful if the project is configuring formatters for the project and you don't have to replicate this logic within Emacs, but instead utilize treefmt directly. To do that you can set the `apheleia-formatter` to `treefmt` within the projects `.dir-locals.el`. I noticed there are tests for this, since treefmt could technically format anything, I went with treefmt formatting rust code. It also relies on having a `treefmt.toml` in the project folder, so had to add that as well in the tests.
9 lines
85 B
Rust
9 lines
85 B
Rust
fn foo() {
|
|
println!("a");
|
|
}
|
|
|
|
fn bar() {
|
|
println!("b");
|
|
|
|
println!("c");
|
|
}
|