Skip to content

Commit

Permalink
Use dir option from nixfmt 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoriguchi committed Dec 5, 2023
1 parent 8d7aa6f commit 4485d86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/home-manager/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@
{
"type" = "shell";
"label" = "nixfmt workspace";
"command" = lib.concatStringsSep " | " [
''${pkgs.findutils}/bin/find "''${workspaceFolder}" -name "*.nix"''
"${pkgs.findutils}/bin/xargs ${pkgs.nixfmt}/bin/nixfmt --width=140"
];
"command" = ''${pkgs.nixfmt}/bin/nixfmt --width=140 "''${workspaceFolder}"'';
"presentation" = {
"clear" = true;
"close" = true;
Expand Down

0 comments on commit 4485d86

Please sign in to comment.