nix: fix outdated references to format.package

This commit is contained in:
Ching Pei Yang 2025-08-23 13:52:27 +02:00
commit 8cd4641d59
No known key found for this signature in database
GPG key ID: B3841364253DC4C8

View file

@ -18,10 +18,10 @@
formattingCmd = mkIf (cfg.format.enable && cfg.lsp.enable) {
formatting = mkMerge [
(mkIf (cfg.format.type == "alejandra") {
command = ["${cfg.format.package}/bin/alejandra" "--quiet"];
command = [(getExe pkgs.alejandra) "--quiet"];
})
(mkIf (cfg.format.type == "nixfmt") {
command = ["${cfg.format.package}/bin/nixfmt"];
command = [(getExe pkgs.nixfmt-rfc-style)];
})
];
};