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
In the meantime, hooking up nixfmt with a File Watcher works reasonably well:
Reacted by Johannes Spangenberg, Andreas Fehn, xuyang2, Juozas Norkus, roger yee, Jayesh Bhoot, Zacchary Dempsey-Plante, Wittano Bonarotti and debuxxed (offeex)
Coming soon with the next release, there will be a new option in the settings which can be used to integrate nixpkgs-fmt and potentially other formatters. Thanks goes to @cottand.
I think it would still be nice to have a very basic built-in formatter, which can at least handle the indentation in lists, attribute sets and let expressions. I will therefore keep this ticket open.
Can confirm this feature works, personally using nixfmt-rfc-style with the following command: nix --extra-experimental-features "nix-command flakes" run nixpkgs#nixfmt-rfc-style -- -w 240
Activity
[-]Basic Formatter[/-][+]Formatter[/+]r-k-b commentedon Dec 29, 2020
In the meantime, hooking up

nixfmtwith a File Watcher works reasonably well:JojOatXGME commentedon Jun 8, 2024
Coming soon with the next release, there will be a new option in the settings which can be used to integrate
nixpkgs-fmtand potentially other formatters. Thanks goes to @cottand.I think it would still be nice to have a very basic built-in formatter, which can at least handle the indentation in lists, attribute sets and
letexpressions. I will therefore keep this ticket open.TheArcaneBrony commentedon Aug 1, 2024
Can confirm this feature works, personally using nixfmt-rfc-style with the following command:
nix --extra-experimental-features "nix-command flakes" run nixpkgs#nixfmt-rfc-style -- -w 240