Refactor lang/rust lsp check
This commit is contained in:
parent
cb38bb23df
commit
698001900f
1 changed files with 2 additions and 4 deletions
|
@ -12,10 +12,8 @@
|
||||||
(warn! "Couldn't find cargo binary"))
|
(warn! "Couldn't find cargo binary"))
|
||||||
|
|
||||||
(if (featurep! +lsp)
|
(if (featurep! +lsp)
|
||||||
(let ((lsp-server 'rls))
|
|
||||||
(when (require 'rustic nil t)
|
(when (require 'rustic nil t)
|
||||||
(setq lsp-server rustic-lsp-server))
|
(pcase rustic-lsp-server
|
||||||
(pcase lsp-server
|
|
||||||
(`rust-analyzer
|
(`rust-analyzer
|
||||||
(unless (executable-find "rust-analyzer")
|
(unless (executable-find "rust-analyzer")
|
||||||
(warn! "Couldn't find rust analyzer (rust-analyzer)")))
|
(warn! "Couldn't find rust analyzer (rust-analyzer)")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue