Open ZharMeny opened 2 months ago
Until the mentioned PR is merged and if you someone is using doom emacs, the following can be used as a workaround:
(set-formatter! 'nixpkgs-fmt '("nixpkgs-fmt") :modes '(nix-mode nix-ts-mode))
If you're not using doom, you can of course just manipulate apheleia-formatters
directly.
With
apheleia-global-mode
enabled,nixfmt
isn't run automatically on save when usingnix-ts-mode
instead ofnix-mode
, asnix-ts-mode
doesn't derive fromnix-mode
and is not in the defaultapheleia-mode-alist
.