Chore: update formatter

This commit is contained in:
Nickolaj Jepsen 2025-02-23 23:19:39 +01:00
parent 3eb72c17d7
commit 880c97dff8
4 changed files with 37 additions and 20 deletions

View file

@ -1,4 +1,10 @@
{inputs, ...}: {
{
inputs,
lib,
...
}: let
mkExtensionIgnore = exts: "*.{${lib.concatStringsSep "," exts}}";
in {
imports = [inputs.treefmt-nix.flakeModule];
perSystem = {config, ...}: {
@ -10,8 +16,18 @@
statix.enable = true;
just.enable = true;
prettier.enable = true;
fish_indent.enable = true;
};
settings.global.excludes = ["*.{gitignore,svg}"];
settings.global.excludes = [
"result"
"*/node_modules/*"
(mkExtensionIgnore [
"gitignore"
"svg"
"age"
"pub"
])
];
};
formatter = config.treefmt.build.wrapper;
};