Skip to content

Add formatter - #544

Draft
xaltsc wants to merge 2 commits into
andrewrabert:mainfrom
xaltsc:flake-fmt
Draft

Add formatter#544
xaltsc wants to merge 2 commits into
andrewrabert:mainfrom
xaltsc:flake-fmt

Conversation

@xaltsc

@xaltsc xaltsc commented Jun 24, 2026

Copy link
Copy Markdown

There are a lot of formatters available https://github.com/numtide/treefmt-nix so feel free to request more.

I've enabled them for

  • nix
  • rust
  • js
  • css
  • json
  • yaml
  • md
  • html

Blocked by #515

The thing that is missing is how to autoformat. This allows nix fmt to format everything it can, but it does not do it, say, before a commit.

@andrewrabert andrewrabert added nix Nix & NixOS enhancement New feature or request labels Jun 25, 2026
@andrewrabert andrewrabert changed the title Flake: add formatter Add formatter Jun 25, 2026
@xaltsc xaltsc mentioned this pull request Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request nix Nix & NixOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants