hooks: Add a hook for statix (#390)

This commit is contained in:
traxys 2023-05-27 00:03:50 +02:00 committed by GitHub
parent 2a2f702942
commit dfb2abd209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -83,7 +83,9 @@
enable = true; enable = true;
excludes = ["plugins/_sources"]; excludes = ["plugins/_sources"];
}; };
statix.enable = true;
}; };
settings.statix.ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"];
}; };
}; };
devShells = { devShells = {

View file

@ -157,8 +157,7 @@ in {
else attrset; else attrset;
options = { options = {
theme = cfg.theme; inherit (cfg) theme iconsEnabled;
iconsEnabled = cfg.iconsEnabled;
layout = builtins.map processButtons cfg.layout; layout = builtins.map processButtons cfg.layout;
}; };
in in

1
statix.toml Normal file
View file

@ -0,0 +1 @@
ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"]