feat: change nix formater from alejandra to nixfmt-rfc-style (#50)

- The recommended nix formatter is nixfmt-rfc-style and not alejandra.
This commit is contained in:
Viorel-Cătălin Răpițeanu 2024-10-25 09:12:02 +03:00 committed by GitHub
parent e522e9ea2d
commit 9a2a38af51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -106,7 +106,7 @@
"isort"
];
lua = ["stylua"];
nix = ["alejandra"];
nix = ["nixfmt-rfc-style"];
markdown = [
[
"prettierd"
@ -137,6 +137,9 @@
isort = {
command = "${lib.getExe pkgs.isort}";
};
nixfmt-rfc-style = {
command = "${lib.getExe pkgs.nixfmt-rfc-style}";
};
alejandra = {
command = "${lib.getExe pkgs.alejandra}";
};

View file

@ -44,12 +44,12 @@
src = ./.;
hooks = {
statix.enable = true;
alejandra.enable = true;
nixfmt-rfc-style.enable = true;
};
};
};
formatter = pkgs.alejandra;
formatter = pkgs.nixfmt-rfc-style;
packages.default = nvim;