Use clang-format for objc-mode in apheleia

This commit is contained in:
Adam Goldsmith 2024-05-31 14:04:22 -04:00
parent 3091331107
commit 8089cc8f1b

View File

@ -1085,6 +1085,7 @@
:config
(setf (alist-get 'djlint apheleia-formatters) '("djlint" "--reformat" "-"))
(setf (alist-get "\\.dj\\.html$" apheleia-mode-alist) '(djlint))
(setf (alist-get 'objc-mode apheleia-mode-alist) 'clang-format)
(defun apheleia--pyproject-contains-section (section)
(when-let (parent (locate-dominating-file default-directory "pyproject.toml"))