nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

TEST: reformat with latest nixfmt

Open MattSturgeon opened this issue 1 year ago • 4 comments

Just to satisfy my curiosity, this is what the repo looks like when running

nix run github:nixos/nixfmt -- **/*.nix

Note: some of the new formatting uses input-formatting-based heuristics, so if you (for example) wanted to reformat the following, it may require manual intervention.

# from
mkRenamedOptionModule
  [
    "plugins"
    "hello"
    "foo"
  ]
  [
    "plugins"
    "goodbye"
    "bar"
  ]
# to
mkRenamedOptionModule [ "plugins" "hello" "foo" ] [ "plugins" "goodbye" "bar" ]
# or
mkRenamedOptionModule
  [ "plugins" "hello" "foo" ]
  [ "plugins" "goodbye" "bar" ]

We can experiment with additional commits on this branch, manually modifying input formatting and re-running nixfmt to see what it now permits.

MattSturgeon avatar Sep 09 '24 16:09 MattSturgeon