Skip to content

The option to use nix fmt (or a wrapper like Mic92/flake-fmt) instead for formatting instead of the configured package #1671

Description

@ItsLiyua

I have verified that this feature request has not been made before

  • I have checked the issues tab, and did not find a similar feature request. I understand that my issue will be closed if it is a duplicate.

Feature Type

Other

Feature description

I'd like to be able to use the formatter provided by a project flake instead of the formatter I configured in nvf if it's available. My nvf configuration is set to format-on-save so the formatter is run quite regularly and I'd like it to use the actual formatter I want to use immediately instead of the "fallback" I configured in the nvf config for the case that there is no project provided formatter output.

Alternatives

Currently I manually run nix fmt manually every once in a while. I also configured some of the formatters in nvf directly but those might not comply with the project provided formatter settings (when using treefmt for example)

Additional Context

Thanks for building nvf! It's a really useful tool to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TBDMore discussion and research is in order

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions