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)