From 880a64267260c38faa6bfc412697f3b88149f797 Mon Sep 17 00:00:00 2001 From: John Doty Date: Sun, 5 Nov 2023 20:00:54 +0000 Subject: [PATCH] clippy --- .emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0891e28..3536bf7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -456,6 +456,11 @@ ;; 2023-09-03 Re-work the way that the JS/Deno switch is handled. (add-to-list 'eglot-server-programs '((js-mode typescript-mode) . ts/server-program)) + + ;; 2023-10-26 Use cargo clippy instead of cargo check + (add-to-list 'eglot-server-programs + '((rust-mode rust-ts-mode) . ("rust-analyzer" :initializationOptions + (:check (:command "clippy"))))) ;; -- (add-hook 'eglot-managed-mode-hook 'my-disable-flycheck-on-eglot)