Swap prettier for djlint
This commit is contained in:
parent
e2fd2a13e8
commit
212ca46616
12 changed files with 150 additions and 178 deletions
18
treefmt.nix
18
treefmt.nix
|
|
@ -1,26 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs = {
|
||||
nixfmt.enable = true;
|
||||
gofmt.enable = 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
djlint.enable = true;
|
||||
};
|
||||
settings.global.excludes = [
|
||||
"archetypes/**"
|
||||
"public/**"
|
||||
"static/**"
|
||||
".envrc"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue