nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

fix: replace nixfmt

Open sebastianwebber opened this issue 1 year ago • 2 comments

since nixfmt package was renamed, this PR replaces the package by the new nixfmt-rfc-style.

Related to https://github.com/nix-community/nixvim/issues/1374

sebastianwebber avatar Apr 04 '24 12:04 sebastianwebber

Thanks @sebastianwebber for your PR. This cannot be done right now as we first need to update the flake.lock to get the revision where nixfmt has been aliased to nixfmt-classic. The change will hence be happening in #1369. I still don't know if we should use nixfmt-classic (what nixfmt has been aliased to, which has the same behavior) or the new nixfmt-rfc-style...

GaetanLepage avatar Apr 04 '24 12:04 GaetanLepage

I still don't know if we should use nixfmt-classic (what nixfmt has been aliased to, which has the same behavior) or the new nixfmt-rfc-style...

Presumably we should offer both, but if users are using a specific formatter (classic nixfmt) then we probably shouldn't change them to a new formatter (rfc-style) without some kinda deprecation notice, warning, or opt-in...

If there's an alias then we may not need to do anything immediately?

Asside: I'm assuming nixfmt-rfc-style is functionality identical to the beta nixpkgs-fmt that was built during the RFC?

MattSturgeon avatar Apr 04 '24 18:04 MattSturgeon

Asside: I'm assuming nixfmt-rfc-style is functionality identical to the beta nixpkgs-fmt that was built during the RFC?

nixpkgs-fmt was built for RFC 101. RFC 101 was rejected and a rework was proposed (RFC 166). RFC 166 was accepted and is being implemented into nixfmt-rfc-style.

nixpkgs-fmt and nixfmt-rfc-style have meaningful differences.

jalil-salame avatar Apr 05 '24 10:04 jalil-salame

I will go on and replace it with nixfmt-classic for now. Like so, we avoid breaking anything on the user side.

GaetanLepage avatar Apr 07 '24 12:04 GaetanLepage