From 5997e83b32c69018f8374d2a5972c18b5503fe6a Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Thu, 20 Jul 2023 16:13:03 -0700 Subject: [PATCH] fix: add more rust LSP configuration Signed-off-by: Lucas Sta Maria --- .emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 09cd98d..9635476 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -198,7 +198,10 @@ (setq web-mode-content-types-alist '(("jsx" . "\\.js[x]?\\"))) (setq web-mode-markup-indent-offset 2) +(setq lsp-rust-analyzer-cargo-watch-enable t) +(setq lsp-rust-analyzer-cargo-watch-command "clippy") (setq lsp-rust-analyzer-server-display-inlay-hints t) +(setq lsp-rust-analyzer-inlay-hints-mode t) ;; ====== Hooks ============================== (add-hook 'after-init-hook 'global-company-mode)