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"
|
"isort"
|
||||||
];
|
];
|
||||||
lua = ["stylua"];
|
lua = ["stylua"];
|
||||||
nix = ["alejandra"];
|
nix = ["nixfmt-rfc-style"];
|
||||||
markdown = [
|
markdown = [
|
||||||
[
|
[
|
||||||
"prettierd"
|
"prettierd"
|
||||||
|
|
@ -137,6 +137,9 @@
|
||||||
isort = {
|
isort = {
|
||||||
command = "${lib.getExe pkgs.isort}";
|
command = "${lib.getExe pkgs.isort}";
|
||||||
};
|
};
|
||||||
|
nixfmt-rfc-style = {
|
||||||
|
command = "${lib.getExe pkgs.nixfmt-rfc-style}";
|
||||||
|
};
|
||||||
alejandra = {
|
alejandra = {
|
||||||
command = "${lib.getExe pkgs.alejandra}";
|
command = "${lib.getExe pkgs.alejandra}";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -44,12 +44,12 @@
|
||||||
src = ./.;
|
src = ./.;
|
||||||
hooks = {
|
hooks = {
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
alejandra.enable = true;
|
nixfmt-rfc-style.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
packages.default = nvim;
|
packages.default = nvim;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue