From 6854f8dcf98cd01b22b01974da2ffddec8884456 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 31 Dec 2020 02:03:49 +0100 Subject: [PATCH] Run clippy in rust-analyzer --- config.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.org b/config.org index ccc7fae..2e3ea06 100644 --- a/config.org +++ b/config.org @@ -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