mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-22 13:24:40 +01:00
add alejandra as formatter for nix to helix config
This commit is contained in:
parent
8a1314b58f
commit
1a3bbe351a
|
@ -68,8 +68,6 @@ with builtins; {
|
||||||
aria2
|
aria2
|
||||||
usbutils
|
usbutils
|
||||||
numbat
|
numbat
|
||||||
|
|
||||||
alejandra
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,14 @@
|
||||||
name = "nu";
|
name = "nu";
|
||||||
language-servers = ["nu-builtin-lsp"];
|
language-servers = ["nu-builtin-lsp"];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "nix";
|
||||||
|
formatter = {
|
||||||
|
command = "${pkgs.alejandra}/bin/alejandra";
|
||||||
|
args = ["--quiet"];
|
||||||
|
};
|
||||||
|
auto-format = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue