1
0
Fork 0

fix(emacs): enable clippy for eglot

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-11-10 20:32:23 -05:00
parent 356d881dd9
commit ec15656038
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -5,7 +5,11 @@
(use-package eglot :straight t (use-package eglot :straight t
:custom-face (eglot-inlay-hint-face ((t (:height 1.0)))) :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 (use-package eldoc :straight t
:after (eglot)) :after (eglot))
(use-package eldoc-box :straight t (use-package eldoc-box :straight t