nix-community/nix-ts-mode

support indenting attrset args according to RFC 166

Opened this issue · 2 comments

Trying to indent the args here does not work; it forces them onto column 0:

{
config,
pkgs,
lib,
...
}:

Perhaps the rule of "one further than the parent" could be generalised now that we have an official Nix style which lays out precise rules on that: NixOS/rfcs#166

I also observe this behavior after starting to use nixfmt with RFC-style.

I plan to work on this next week.
Would you mind renaming the issue to "Support RFC 166 indentation"?