flake/devshell: run treefmt directly in format command

This is much faster than running `nix fmt`.

Running treefmt directly will use the treefmt installed in the current
shell. Running `nix fmt` will first re-evaluate the flake.
This commit is contained in:
Matt Sturgeon 2025-05-16 04:08:39 +01:00
parent 46e1359338
commit 4c989abc8c
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -81,7 +81,7 @@
{
name = "format";
help = "Format the entire codebase";
command = "nix fmt";
command = lib.getExe config.formatter;
}
{
name = "docs";