From 8df5672f8cfb7644e6c72c08f27c528ff31e792f Mon Sep 17 00:00:00 2001 From: roife Date: Thu, 14 Dec 2023 15:41:08 +0800 Subject: [PATCH] add language id for eglot --- rustic-lsp.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rustic-lsp.el b/rustic-lsp.el index 4ff55bef..57871ba8 100644 --- a/rustic-lsp.el +++ b/rustic-lsp.el @@ -106,8 +106,6 @@ with `lsp-rust-switch-server'." ;;; eglot support (defvar eglot-ignored-server-capabilites) -(defvar eglot-ignored-server-capabilites) -(defvar eglot-server-programs) (defvar eglot-server-programs) (declare-function eglot-ensure "eglot" ()) @@ -125,7 +123,7 @@ with `lsp-rust-switch-server'." (when (symbolp (car mode)) (eq (car mode) 'rust-mode))) eglot-server-programs))))) - (add-to-list 'eglot-server-programs `(rustic-mode . (eglot-rust-analyzer . ,rustic-analyzer-command))))) + (add-to-list 'eglot-server-programs `((rustic-mode :language-id "rust") . (eglot-rust-analyzer . ,rustic-analyzer-command))))) (with-eval-after-load 'eglot (defclass eglot-rust-analyzer (eglot-lsp-server) ()