Make .clangd files yaml mode

This commit is contained in:
Alexander Rosenberg 2025-02-20 20:38:28 -08:00
parent 997be323f5
commit 819d0eda4f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -1941,6 +1941,7 @@ otherwise, call `bibtex-find-text'."
:hook ((yaml-ts-mode . trusted-files-eglot-ensure-if-safe)
(yaml-ts-mode . my/-setup-yaml-ts-mode))
:init
(add-to-list 'auto-mode-alist `("\\.clangd\\'" . yaml-ts-mode))
(defun my/-setup-yaml-ts-mode ()
(setq indent-line-function #'yaml-indent-line)))
(use-package yaml-mode)