Use rust-analyzer when it is installed
This commit is contained in:
parent
2ba8c41462
commit
bb85c106fe
@ -588,6 +588,9 @@
|
|||||||
lsp-pylsp-plugins-pydocstyle-enabled nil
|
lsp-pylsp-plugins-pydocstyle-enabled nil
|
||||||
lsp-pylsp-plugins-flake8-enabled t)
|
lsp-pylsp-plugins-flake8-enabled t)
|
||||||
|
|
||||||
|
(when (executable-find "rust-analyzer")
|
||||||
|
(setq lsp-rust-server 'rust-analyzer))
|
||||||
|
|
||||||
(defun lsp-compile-in-root ()
|
(defun lsp-compile-in-root ()
|
||||||
"Do compilation in the root dir of a project"
|
"Do compilation in the root dir of a project"
|
||||||
(interactive)
|
(interactive)
|
||||||
|
Loading…
Reference in New Issue
Block a user