add alejandra as formatter for nix to helix config

This commit is contained in:
Schrottkatze 2023-11-26 21:34:14 +01:00
parent 8a1314b58f
commit 1a3bbe351a
2 changed files with 8 additions and 2 deletions

View file

@ -68,8 +68,6 @@ with builtins; {
aria2 aria2
usbutils usbutils
numbat numbat
alejandra
]; ];
}; };

View file

@ -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;
}
]; ];
}; };
}; };