From 698001900f845b56209ceb23ad2ef6d1c9111a13 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 29 Feb 2020 19:09:50 -0500 Subject: [PATCH] Refactor lang/rust lsp check --- modules/lang/rust/doctor.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/lang/rust/doctor.el b/modules/lang/rust/doctor.el index b8af96745..689d54285 100644 --- a/modules/lang/rust/doctor.el +++ b/modules/lang/rust/doctor.el @@ -12,10 +12,8 @@ (warn! "Couldn't find cargo binary")) (if (featurep! +lsp) - (let ((lsp-server 'rls)) - (when (require 'rustic nil t) - (setq lsp-server rustic-lsp-server)) - (pcase lsp-server + (when (require 'rustic nil t) + (pcase rustic-lsp-server (`rust-analyzer (unless (executable-find "rust-analyzer") (warn! "Couldn't find rust analyzer (rust-analyzer)")))