Run clippy in rust-analyzer

This commit is contained in:
Antoine Martin 2020-12-31 02:03:49 +01:00
parent b6427804cb
commit 6854f8dcf9

View file

@ -14,6 +14,7 @@
- [[#smart-parens][Smart parens]]
- [[#rust][Rust]]
- [[#column-width][Column width]]
- [[#run-clippy-in-rust-analyzer][Run clippy in rust-analyzer]]
- [[#cc][C/C++]]
- [[#default-style][Default style]]
- [[#org-mode][Org mode]]
@ -174,6 +175,14 @@ Disable smart parens because half of the time it doesn't do what I want:
(set-fill-column 100))
#+END_SRC
*** Run clippy in rust-analyzer
The default is ~"check"~, but I want clippy lints as well.
#+begin_src emacs-lisp
(setq lsp-rust-analyzer-cargo-watch-command "clippy")
#+end_src
** C/C++
*** Default style