nixfmt v1.0.0 released! 🥳
This is the first stable release of the official Nix formatter. It implements RFC 166, which defines a standard for Nix formatting.
Great work by the Nix Formatting Team, thanks to everyone involved!
@krutonium #HelixEditor with #nixd LSP and #nixfmt formatter.
nixfmt v1.0.0 released! 🥳
This is the first stable release of the official Nix formatter. It implements RFC 166, which defines a standard for Nix formatting.
Great work by the Nix Formatting Team, thanks to everyone involved!
Official #nix formatter just dropped
https://github.com/NixOS/nixfmt/pull/316
Cleaned up my #nixos-config today and finally applied #nixfmt.
Now I should really configure my #emacs to #nixfmt on save.
I still sometimes touch Nix code that hasn't been formatted to the standard yet though and it should not attempt to apply #nixfmt in that case.
How do I do that without needing to manually specify which projects/files to always apply #nixfmt on?
Wanted to try #nixfmt on my #nixos-config tree again, so I ran
fd . -t file --extension nix -x nixfmt
It was taking unusually long but it was loading my CPU alright.
Huh, it really shouldn't be taking *this* long.
Oh, I was in my home directory O.o
Off to finding all the repos with Nix files in them I have on this machine to undo that...