Add alejandra as nix formatter

This commit is contained in:
Evie Litherland-Smith 2024-01-30 16:23:31 +00:00
parent ccfb0c5979
commit be1d1ff58c

View file

@ -820,6 +820,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
:hook (prog-mode)
:custom (apheleia-remote-algorithm 'local)
:config
(add-to-list 'apheleia-formatters '(alejandra . ("alejandra")))
(add-to-list 'apheleia-mode-alist '(nix-mode . alejandra))
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff)))
#+end_src