mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(format): register more ts-modes
While not strictly necessary (because apheleia uses `provided-mode-derived-p` for its major mode tests), many *-ts-modes didn't declare themselves children of their base modes until 30.1+.
This commit is contained in:
parent
c48aa1851c
commit
bdacdfa67c
1 changed files with 3 additions and 0 deletions
|
|
@ -79,8 +79,11 @@ This is controlled by `+format-on-save-disabled-modes'."
|
|||
|
||||
;; Use clang-format for cuda and protobuf files.
|
||||
(add-to-list 'apheleia-mode-alist '(cuda-mode . clang-format))
|
||||
(add-to-list 'apheleia-mode-alist '(cuda-ts-mode . clang-format))
|
||||
(add-to-list 'apheleia-mode-alist '(protobuf-mode . clang-format))
|
||||
(add-to-list 'apheleia-formatters-mode-extension-assoc '(cuda-mode . ".cu"))
|
||||
(add-to-list 'apheleia-formatters-mode-extension-assoc '(cuda-ts-mode . ".cu"))
|
||||
(add-to-list 'apheleia-formatters-mode-extension-assoc '(glsl-ts-mode . ".glsl"))
|
||||
(add-to-list 'apheleia-formatters-mode-extension-assoc '(protobuf-mode . ".proto"))
|
||||
|
||||
;; Apheleia's default clang-format config doesn't respect `c-basic-offset', so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue