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:
parent
e522e9ea2d
commit
9a2a38af51
2 changed files with 6 additions and 3 deletions
|
|
@ -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}";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue