mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-27 06:05:43 +02:00
flake/pre-commit: use treefmt in git hook
This commit is contained in:
parent
8c44124a1f
commit
2583f54225
1 changed files with 1 additions and 8 deletions
|
@ -31,14 +31,7 @@
|
||||||
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
|
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
|
||||||
pre-commit = {
|
pre-commit = {
|
||||||
settings.hooks = {
|
settings.hooks = {
|
||||||
nixfmt = {
|
treefmt.enable = true;
|
||||||
enable = true;
|
|
||||||
package = fmt;
|
|
||||||
};
|
|
||||||
statix = {
|
|
||||||
enable = true;
|
|
||||||
excludes = [ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
|
|
||||||
};
|
|
||||||
typos.enable = true;
|
typos.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue