From bb85c106febcca5d3a7150fcf86a61af9139887d Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 12 Feb 2022 10:43:51 -0500 Subject: [PATCH] Use rust-analyzer when it is installed --- .emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c79f220..e33e3a2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -588,6 +588,9 @@ lsp-pylsp-plugins-pydocstyle-enabled nil lsp-pylsp-plugins-flake8-enabled t) + (when (executable-find "rust-analyzer") + (setq lsp-rust-server 'rust-analyzer)) + (defun lsp-compile-in-root () "Do compilation in the root dir of a project" (interactive)