emacs: enable cargo clippy for rust-analyzer / eglot

This commit is contained in:
Evie Litherland-Smith 2023-12-09 07:43:54 +00:00
parent 87886748fc
commit e945347f6e
2 changed files with 18 additions and 2 deletions

View file

@ -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

View file

@ -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