diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 09e81beb..66ea358d 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -17,10 +17,10 @@ formattingCmd = mkIf (cfg.format.enable && cfg.lsp.enable) { formatting = mkMerge [ - (mkIf (cfg.format.type == "alejandra") { + (mkIf (cfg.format.type == ["alejandra"]) { command = [(getExe pkgs.alejandra)]; }) - (mkIf (cfg.format.type == "nixfmt") { + (mkIf (cfg.format.type == ["nixfmt"]) { command = [(getExe pkgs.nixfmt-rfc-style)]; }) ];