Add harper to eglot in init.el

This commit is contained in:
2026-05-08 05:42:25 -07:00
parent cfad91a025
commit 8d32e18959
+2
View File
@@ -1587,6 +1587,8 @@ With PROJECT, give diagnostics for all buffers in the current project."
(advice-add 'eglot--workspace-configuration-plist :around (advice-add 'eglot--workspace-configuration-plist :around
#'my/-eglot-fix-dir-locals-in-remote-dirs) #'my/-eglot-fix-dir-locals-in-remote-dirs)
(add-to-list 'eglot-server-programs
(cons '(text-mode) '("harper-ls" "--stdio")))
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
(cons '(c-mode c-ts-mode c++-mode c++-ts-mode objc-mode) (cons '(c-mode c-ts-mode c++-mode c++-ts-mode objc-mode)
'("clangd" "--all-scopes-completion" "--background-index" '("clangd" "--all-scopes-completion" "--background-index"