Files
caldwell/treefmt.nix
2025-08-08 10:53:21 +02:00

39 lines
725 B
Nix
Executable File

{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs = {
nixfmt = {
enable = true;
strict = true;
};
taplo.enable = true;
prettier = {
enable = true;
settings = {
plugins = [
"${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"
];
overrides = [
{
files = [ "*.html" ];
options.parser = "go-template";
}
];
};
};
};
settings.global.excludes = [
".envrc"
"public/**"
"static/**"
# FIXME: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120
"layouts/_default/_markup/render-heading.html"
];
}