all repos — nixfiles @ 0fda7794165a458ecdf7be8cd8f1d4a25d47e87f

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

emacs: set formatter for SQL files

Alan Pearce
commit

0fda7794165a458ecdf7be8cd8f1d4a25d47e87f

parent

133e0093afcee39b3573f7fbf039c7624eb81d52

1 file changed, 1 insertion(+), 0 deletions(-)

changed files
M user/emacs/init.eluser/emacs/init.el
@@ -1389,6 +1389,7 @@ (sqlfluff "sqlfluff" "format" "--stdin-filename" filepath "-")
(prettier-gotmpl "prettier" "--stdin-filepath" filepath "--parser=go-template" (apheleia-formatters-indent "--use-tabs" "--tab-width"))))) + (setf (alist-get 'sql-mode apheleia-mode-alist) 'sqlfluff) (setq apheleia-mode-alist (append apheleia-mode-alist '((toml-ts-mode . taplo))))) :init (progn (apheleia-global-mode +1)))