diff --git a/.emacs.d/include/priime-lsp.el b/.emacs.d/include/priime-lsp.el index f15d5f4..b4e23f7 100644 --- a/.emacs.d/include/priime-lsp.el +++ b/.emacs.d/include/priime-lsp.el @@ -5,7 +5,11 @@ (use-package eglot :straight t :custom-face (eglot-inlay-hint-face ((t (:height 1.0)))) - :hook ((racket-mode rust-mode irony-mode) . eglot-ensure)) + :hook ((racket-mode rust-mode irony-mode) . eglot-ensure) + :init + (add-to-list 'eglot-server-programs + '((rust-mode rust-ts-mode) + ("rust-analyzer" :initializationOptions (:checkOnSave (:command "clippy")))))) (use-package eldoc :straight t :after (eglot)) (use-package eldoc-box :straight t