8000 `excludes` in `treefmt.toml` are ignored with `--stdin` · Issue #596 · numtide/treefmt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
excludes in treefmt.toml are ignored with --stdin #596
Open
@Stzx

Description

@Stzx

Describe the bug

Does treefmt.toml have no effect when using treefmt with --stdin?

To Reproduce

Steps to reproduce the behavior:

  1. configure zed & treefmt as above
  2. edit foo/bar.nix in zed
  3. 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}"];
    };
  };
};
...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0