Open
Description
Describe the bug
Does treefmt.toml have no effect when using treefmt
with --stdin
?
To Reproduce
Steps to reproduce the behavior:
- configure zed & treefmt as above
- edit
foo/bar.nix
in zed - save
Expected behavior
bar.nix
file is not formatted
System information
system: nixos-unstable
treefmt: v2.3.1
zed: v0.188.3
Additional context
treefmt.toml
...
[formatter.nixfmt-rfc-style]
command = "nixfmt"
includes = ["*.nix"]
excludes = ["*/bar.nix"]
...
Zed
...
languages = {
Nix = {
...
formatter.external = {
command = "treefmt";
arguments = ["--stdin" "{buffer_path}"];
};
};
};
...