Kevin Amado

Results 112 comments of Kevin Amado

We just hit this in production too: https://gitlab.com/fluidattacks/product/-/issues/3874 I'm willing to contribute a patch, but I'll need a hand with the desired interface/implementation, at least a skeleton or a few...

Thank you, there are many things going on here, let's improve step by step I believe I finally found the quasi-perfect heuristic for tight vs loose parentheses: - loose when...

Using the new parenthesis heuristics the code is looking better: ```nix '' otherModules=${ pkgs.writeText "other-modules.json" ( l.toJSON ( l.mapAttrs (pname: subOutputs: let pkg = subOutputs.packages."${pname}".overrideAttrs (old: { buildScript = "true";...

One step at a time my friend

@B4dM4n @DavHau Thank you, I believe we finally converged into a good design Below you'll find how Alejandra @ https://github.com/kamadorueda/alejandra/commit/2842bdc2392ea12196684314bc0b7eccd2c39277 formats the code snippets you posted here I believe we...

@yorickvP do you have some real usage impact because of this? I was looking at Nixpkgs, and there are 615 Nix files out of 24617 which contain floating point numbers,...

In short, something like: ```nix { formatter.${system} = nixpkgs.writeShellScriptBin "alejandra" '' exec ${nixpkgs.alejandra}/bin/alejandra --quiet "$@" ''; } ``` We would need a survey in order to know what mode (tui...

I just created some poll over here: https://discourse.nixos.org/t/the-uncompromising-nix-code-formatter/17385/48?u=kamadorueda And it seems this is actually a good idea, not to mention other people also support this point of view: https://en.wikipedia.org/wiki/Unix_philosophy So...

Some updates to the CLI just landed master, it would be good if you help me review them before creating a release, with them, this issue could be closed @robx...

Thanks! let me fix it