mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
flake: use pre-configured treefmt package in git-hooks
This commit is contained in:
parent
95ca65c8d1
commit
46e1359338
1 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
perSystem =
|
perSystem =
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
@ -84,7 +85,10 @@
|
||||||
edit = true;
|
edit = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
treefmt.enable = true;
|
treefmt = {
|
||||||
|
enable = true;
|
||||||
|
package = config.formatter;
|
||||||
|
};
|
||||||
typos = {
|
typos = {
|
||||||
enable = true;
|
enable = true;
|
||||||
excludes = [ "generated/*" ];
|
excludes = [ "generated/*" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue