From 4c989abc8cb53c94986bca6fc5f058d53a1d55cc Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 16 May 2025 04:08:39 +0100 Subject: [PATCH] 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. --- flake/dev/devshell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake/dev/devshell.nix b/flake/dev/devshell.nix index 7641fe00..7666c935 100644 --- a/flake/dev/devshell.nix +++ b/flake/dev/devshell.nix @@ -81,7 +81,7 @@ { name = "format"; help = "Format the entire codebase"; - command = "nix fmt"; + command = lib.getExe config.formatter; } { name = "docs";