config language server of cmake in eglot

This commit is contained in:
zedhugh committed 2025-05-19 01:10:36 +08:00
1 parent d1577370ec
commit d50695af9c
1 file changed
+3
+3
View File
@@ -47,6 +47,8 @@
(setq eglot-confirm-server-initiated-edits nil)
(setq eglot-autoshutdown t)
(add-to-list 'eglot-ignored-server-capabilities :inlayHintProvider)
(add-to-list 'eglot-server-programs
'((cmake-mode cmake-ts-mode) . ("cmake-language-server")))
(add-hook 'eglot-managed-mode-hook #'creature/eglot-load-markdown-for-doc)
(add-hook 'eglot-managed-mode-hook #'creature/disable-eglot-for-json)
@@ -74,6 +76,7 @@
python-mode-hook
python-ts-mode-hook
cmake-mode-hook
cmake-ts-mode-hook
c-mode-hook
c++-mode-hook
c-ts-base-mode-hook))