emacs: enable cargo clippy for rust-analyzer / eglot
This commit is contained in:
parent
87886748fc
commit
e945347f6e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue