diff --git a/home/emacs/init.el b/home/emacs/init.el index 88c7093e..8b9c597f 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -497,7 +497,15 @@ :custom (eglot-extend-to-xref t) (eglot-autoshutdown t) - (eglot-autoreconnect nil)) + (eglot-autoreconnect nil) + :config + (add-to-list 'eglot-server-programs + `((rust-ts-mode rust-mode) . ("rust-analyzer" + :initializationOptions + ( :check (:command "clippy") + :procMacro (:enable t) + :cargo ( :buildScripts (:enable t) + :features "all")))))) (use-package flymake :ensure t diff --git a/home/emacs/init.org b/home/emacs/init.org index 13fd2ee9..f283ae7f 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -597,7 +597,15 @@ For reference information, see [[https://orgmode.com][Org-mode website]] :custom (eglot-extend-to-xref t) (eglot-autoshutdown t) - (eglot-autoreconnect nil)) + (eglot-autoreconnect nil) + :config + (add-to-list 'eglot-server-programs + `((rust-ts-mode rust-mode) . ("rust-analyzer" + :initializationOptions + ( :check (:command "clippy") + :procMacro (:enable t) + :cargo ( :buildScripts (:enable t) + :features "all")))))) #+END_SRC ** Flymake