Skip to content

Comment directive to disable nixfmt #91

@PAI5REECHO

Description

@PAI5REECHO

Description

It'd be nice to have a way to disable formatting with a comment directive such as nix-community/nixpkgs-fmt#265. If this were added I'd probably switch from using nixpkgs-fmt.

Small example input

# nixfmt: off
{
  "asd" = 123; "abc" = 321;
}
# nixfmt: on

Expected output

# nixfmt: off
{
  "asd" = 123; "abc" = 321;
}
# nixfmt: on

Actual output

# nixfmt: off
{
  "asd" = 123;
  "abc" = 321;
}
# nixfmt: on

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for issues without a type.

    Projects

    Status

    Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions