We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bbcbb7 commit ff86e09Copy full SHA for ff86e09
rustic-lsp.el
@@ -123,7 +123,13 @@ with `lsp-rust-switch-server'."
123
(when (symbolp (car mode))
124
(eq (car mode) 'rust-mode)))
125
eglot-server-programs)))))
126
- (add-to-list 'eglot-server-programs `((rustic-mode :language-id "rust") . (eglot-rust-analyzer . ,rustic-analyzer-command)))))
+ (add-to-list 'eglot-server-programs
127
+ (append '((rustic-mode :language-id "rust")
128
+ eglot-rust-analyzer)
129
+ rustic-analyzer-command
130
+ (:initializationOptions
131
+ (lambda (_)
132
+ (plist-get eglot-workspace-configuration :rust-analyzer)))))))
133
134
(with-eval-after-load 'eglot
135
(defclass eglot-rust-analyzer (eglot-lsp-server) ()
0 commit comments