nix-community / nixpkgs-fmt

Nix code formatter for nixpkgs [maintainer=@zimbatm]
https://nix-community.github.io/nixpkgs-fmt/
Apache License 2.0
581 stars 34 forks source link

attrsets as function arguments do not get properly indented #323

Open ursi opened 7 months ago

ursi commented 7 months ago

attrsets as function arguments do not get properly indented unless they're surrounded in parentheses.

Input

function
  {
    a = 1;
  }
  ({
    a = 1;
  })

Output

function
{
  a = 1;
}
  ({
    a = 1;
  })

Desired output

function
  {
    a = 1;
  }
  ({
    a = 1;
  })