From dfb2abd209440099f3ad2e1be176c76f3c310c39 Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 27 May 2023 00:03:50 +0200 Subject: [PATCH] hooks: Add a hook for statix (#390) --- flake.nix | 2 ++ plugins/utils/alpha.nix | 3 +-- statix.toml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 statix.toml diff --git a/flake.nix b/flake.nix index 395f224f..40bcd381 100644 --- a/flake.nix +++ b/flake.nix @@ -83,7 +83,9 @@ enable = true; excludes = ["plugins/_sources"]; }; + statix.enable = true; }; + settings.statix.ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"]; }; }; devShells = { diff --git a/plugins/utils/alpha.nix b/plugins/utils/alpha.nix index 962928bf..c4920d22 100644 --- a/plugins/utils/alpha.nix +++ b/plugins/utils/alpha.nix @@ -157,8 +157,7 @@ in { else attrset; options = { - theme = cfg.theme; - iconsEnabled = cfg.iconsEnabled; + inherit (cfg) theme iconsEnabled; layout = builtins.map processButtons cfg.layout; }; in diff --git a/statix.toml b/statix.toml new file mode 100644 index 00000000..a7290782 --- /dev/null +++ b/statix.toml @@ -0,0 +1 @@ +ignore = ["plugins/lsp/language-servers/rust-analyzer-config.nix"]