emacs: enable cargo clippy for rust-analyzer / eglot
This commit is contained in:
parent
87886748fc
commit
e945347f6e
|
@ -497,7 +497,15 @@
|
||||||
:custom
|
:custom
|
||||||
(eglot-extend-to-xref t)
|
(eglot-extend-to-xref t)
|
||||||
(eglot-autoshutdown 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
|
(use-package flymake
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
|
@ -597,7 +597,15 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
||||||
:custom
|
:custom
|
||||||
(eglot-extend-to-xref t)
|
(eglot-extend-to-xref t)
|
||||||
(eglot-autoshutdown 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
|
#+END_SRC
|
||||||
|
|
||||||
** Flymake
|
** Flymake
|
||||||
|
|
Loading…
Reference in a new issue