mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 06:55:30 +00:00
nix: fix outdated references to format.package
This commit is contained in:
parent
d2405c5d18
commit
8cd4641d59
1 changed files with 2 additions and 2 deletions
|
|
@ -18,10 +18,10 @@
|
||||||
formattingCmd = mkIf (cfg.format.enable && cfg.lsp.enable) {
|
formattingCmd = mkIf (cfg.format.enable && cfg.lsp.enable) {
|
||||||
formatting = mkMerge [
|
formatting = mkMerge [
|
||||||
(mkIf (cfg.format.type == "alejandra") {
|
(mkIf (cfg.format.type == "alejandra") {
|
||||||
command = ["${cfg.format.package}/bin/alejandra" "--quiet"];
|
command = [(getExe pkgs.alejandra) "--quiet"];
|
||||||
})
|
})
|
||||||
(mkIf (cfg.format.type == "nixfmt") {
|
(mkIf (cfg.format.type == "nixfmt") {
|
||||||
command = ["${cfg.format.package}/bin/nixfmt"];
|
command = [(getExe pkgs.nixfmt-rfc-style)];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue