Use rust-analyzer when it is installed

This commit is contained in:
Adam Goldsmith 2022-02-12 10:43:51 -05:00
parent 2ba8c41462
commit bb85c106fe

View File

@ -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)