mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
flake: format JS & YML with "prettier"
Used for JS and YML files. Markdown is excluded.
This commit is contained in:
parent
2583f54225
commit
7c02148e68
1 changed files with 11 additions and 0 deletions
|
@ -24,8 +24,19 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = fmt;
|
package = fmt;
|
||||||
};
|
};
|
||||||
|
prettier = {
|
||||||
|
enable = true;
|
||||||
|
excludes = [ "**.md" ];
|
||||||
|
};
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
global.excludes = [
|
||||||
|
"LICENSE"
|
||||||
|
"flake.lock"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
|
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue