You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see in the manual, there's a nix fmt option for flakes. Flakes can indicate what program should be used for formatting code. Flakes that use this project will usually be formatted using it, so I think it would be helpful to provide formatter configuration out of the box when using the flake template. Also documenting how to use it for projects that already have a flake.
The text was updated successfully, but these errors were encountered:
This is much needed option, because - while the corrected formatting gets applied to staged changes - there's no way to apply formatting to all tracked files.
EDIT: its there at pre-commit run --all-files. The integration with nix fmt would be cool nevertheless.
As you can see in the manual, there's a
nix fmt
option for flakes. Flakes can indicate what program should be used for formatting code. Flakes that use this project will usually be formatted using it, so I think it would be helpful to provide formatter configuration out of the box when using the flake template. Also documenting how to use it for projects that already have a flake.The text was updated successfully, but these errors were encountered: