config lua development environment

This commit is contained in:
zedhugh committed 2026-04-30 14:27:41 +08:00
1 parent 14fdf3d7fe
commit 87a7e630b4
2 files changed
+8

No files matched your search

+5
View File
@@ -47,6 +47,9 @@
(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
`((lua-mode lua-ts-mode)
. ,(eglot-alternatives '("emmylua_ls" "lua-language-server" "lua-lsp"))))
(add-to-list 'eglot-server-programs
`((cmake-mode cmake-ts-mode)
. ,(eglot-alternatives '(("neocmakelsp" "stdio") "cmake-language-server"))))
@@ -78,6 +81,8 @@
python-ts-mode-hook
cmake-mode-hook
cmake-ts-mode-hook
lua-mode-hook
lua-ts-mode-hook
c-mode-hook
c++-mode-hook
c-ts-base-mode-hook))