alejandra
alejandra copied to clipboard
The Uncompromising Nix Code Formatter
I just tried using alejandra on https://github.com/talyz/fromElisp, which admittedly isn't representative of most nix code, but provides a pretty good stress test for certain aspects of it: long and complex...
I love alejandra, but my ideal formatter is _completely_ uncompromising. That means that whitespace, including newlines, should not be interpreted by the formatter at all. There should be an algorithmically...
when a error is encountered, instead of line number/column, character since start of file is shown that makes it hard o figure where a mistake was instead of ``` `Failed!...
### Current formatting ```nix { f = a: b: c: a || b && c; } ``` ### Proposed: ```nix { f = a: b: c: a || b &&...
``` > alejandra --version Alejandra 3.0.0 ``` # function args and operator chains #### input 1 ```nix aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: bbbbbbbbbbbbbbbbddddddddd: cccccccccccccccccccccccccccc: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + bbbbbbbbbbbbbbbbddddddddd + cccccccccccccccccccccccccccc ``` #### output 1 ```nix...
Hi, thanks for what seems to be a great package! Is there any way to support non-dark terminal setups. Not exactly popular, but when in an IDE I like my...
given the file: ``` # trailing-space-in-multiline-string.nix '' foo '' ``` (note the trailing space character, `foo `) alejandra reformats it: ``` # trailing-space-in-multiline-string.nix '' foo '' ``` ... that is,...
``` paths = builtins.attrValues { inherit (pkgs) foo # This comment was supposed to be attached to bar. # But it gets split like this. bar baz } ```
The version of alejandra on crates.io is 1.5.0: https://crates.io/crates/alejandra Note `alejandra v1.5.0 appears to have no README.md file` on that page. It gives a wrong impression that the project is...
https://github.com/NixOS/rfcs/pull/166