all repos — nixfiles @ fcb1db28e01c89df4bc95f2cf8ae01755d72d643

System and user configuration, managed by nix and home-manager

switch to nixfmt

Alan Pearce
commit

fcb1db28e01c89df4bc95f2cf8ae01755d72d643

parent

0741f0290ee5e7082ff421921583ff9ad8ec6f1e

1 file changed, 2 insertions(+), 5 deletions(-)

changed files
M user/emacs/init.eluser/emacs/init.el
@@ -1395,15 +1395,12 @@ :config (progn
(setf (alist-get 'shfmt apheleia-formatters) '("shfmt")) (setq apheleia-formatters - (append apheleia-formatters '((nixpkgs-fmt "nixpkgs-fmt") - (golines "golines") + (append apheleia-formatters '((golines "golines") (taplo "taplo" "format" "-") (prettier-gotmpl "prettier" "--stdin-filepath" filepath "--parser=go-template" (apheleia-formatters-indent "--use-tabs" "--tab-width"))))) - (setq apheleia-mode-alist (append apheleia-mode-alist '((nix-ts-mode . nixpkgs-fmt) - (nix-mode . nixpkgs-fmt) - (toml-ts-mode . taplo)))) + (setq apheleia-mode-alist (append apheleia-mode-alist '((toml-ts-mode . taplo)))) (add-hook 'apheleia-mode-hook #'turn-off-format-all-mode)) :init (progn (apheleia-global-mode +1)))