Make sure cmake-ts-mode starts eglot

This commit is contained in:
Alexander Rosenberg 2024-01-09 04:14:04 -08:00
parent 9abf3bd469
commit 3b5c56138f
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -676,7 +676,8 @@ COMMAND and COMINT are like `compile'."
(defun my/setup-cmake-ts-mode ()
"Setup `cmake-ts-mode' buffers."
(setq-local indent-line-function #'cmake-indent))
(add-hook 'cmake-ts-mode-hook #'my/setup-cmake-ts-mode))
(add-hook 'cmake-ts-mode-hook #'my/setup-cmake-ts-mode)
(add-hook 'cmake-ts-mode-hook #'eglot-ensure))
;; json
(use-package json-mode)