alejandra
alejandra copied to clipboard
The Uncompromising Nix Code Formatter
I think empty lines should be allowed in argument sets as well, like it currently works for attrsets, lists and let/in (#28). This would be useful for when you want...
Before: ```nix assert ltoSupport -> stdenv.isDarwin -> throw "LTO is broken on Darwin (see PR#19312)."; let flag = tf: x: [(if tf then "--enable-${x}" else "--disable-${x}")]; ``` After: ```nix assert...
I just tried out the new `nix fmt` with alejandra after upgrading to nixos 22.05, by setting ``` formatter.${system} = pkgs.alejandra; ``` It's almost great, except the excessive colored console...
input: ``` foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz ``` output alejandra 2.0.0: ``` foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz.foobarbizbaz ``` expected output: ``` foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz .foobarbizbaz ```
Mentions #277
Alejandra hangs when trying to format the following file: https://github.com/divnix/grafonnix/blob/main/checks/dashboard/adds.nix. The file is definitely strange with its excessive use of parentheses and the large items in the list. cc @blaggacao
It would be really cool, if I could get the latest release in my `flake.nix` doing inputs.alejandra.url = "github:kamadorueda/alejandra/release"; that way, `nix flake update` suffices and I don't need to...
Feature request: * Occasionally there is a section of code in a nix file which I'd like to purposely exclude from formatting for various reasons * In these cases, the...
Here is a minimal repo of the issue: ```nix { fetch_builtin-url = ''[name] The niv type "builtin-url" will soon be deprecated. You should instead use `builtin = true`. $ niv...