mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-25 16:50:23 -04:00
flake/pre-commit: use treefmt in git hook
This commit is contained in:
committed by
GaetanLepage
parent
8c44124a1f
commit
2583f54225
@@ -31,14 +31,7 @@
|
||||
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
|
||||
pre-commit = {
|
||||
settings.hooks = {
|
||||
nixfmt = {
|
||||
enable = true;
|
||||
package = fmt;
|
||||
};
|
||||
statix = {
|
||||
enable = true;
|
||||
excludes = [ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
|
||||
};
|
||||
treefmt.enable = true;
|
||||
typos.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user