Run clippy in rust-analyzer
This commit is contained in:
parent
b6427804cb
commit
6854f8dcf9
|
@ -14,6 +14,7 @@
|
||||||
- [[#smart-parens][Smart parens]]
|
- [[#smart-parens][Smart parens]]
|
||||||
- [[#rust][Rust]]
|
- [[#rust][Rust]]
|
||||||
- [[#column-width][Column width]]
|
- [[#column-width][Column width]]
|
||||||
|
- [[#run-clippy-in-rust-analyzer][Run clippy in rust-analyzer]]
|
||||||
- [[#cc][C/C++]]
|
- [[#cc][C/C++]]
|
||||||
- [[#default-style][Default style]]
|
- [[#default-style][Default style]]
|
||||||
- [[#org-mode][Org mode]]
|
- [[#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))
|
(set-fill-column 100))
|
||||||
#+END_SRC
|
#+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++
|
** C/C++
|
||||||
|
|
||||||
*** Default style
|
*** Default style
|
||||||
|
|
Loading…
Reference in a new issue