Configure apheleia for nix

This commit is contained in:
Tobias Ostner 2024-11-14 09:32:52 +01:00
parent 95699e8401
commit bfb34f860c

View file

@ -17,7 +17,12 @@
(setq aw-keys '(?a ?b ?c ?d ?e ?f ?g ?h ?i ?j) (setq aw-keys '(?a ?b ?c ?d ?e ?f ?g ?h ?i ?j)
aw-dispatch-always nil)) aw-dispatch-always nil))
(use-package apheleia) (use-package apheleia
:config
(add-to-list 'apheleia-formatters
'(nixpkgs-fmt . ("nixpkgs-fmt")))
(add-to-list 'apheleia-mode-alist
'(nix-mode . nixpkgs-fmt)))
(use-package autorevert (use-package autorevert
:config :config