Skip to content

Document how to use treefmt.toml instead of treefmt.nix with treefmt-nix so that nix fmt & nix flake check can share configuration with treefmt-vscode #375

@vorburger

Description

@vorburger

I've added treefmt-nix to this example project, with a treefmt.nix as documented on the README of this project.

Then I've discovered https://github.com/isbecker/treefmt-vscode and want to use it. But that apparently doesn't dig treefmt.nix, but needs treefmt.toml.

I'm a new Nix user, and it's not clear to me if these 2 ways of configuring formatters can be combined, without duplication?

In a perfect world, this project would document a bit more clearly how to do set-up this combination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions