From 6fc5fe56f22e639d979bfa7eae9a76133265d3bc Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Sat, 16 Apr 2022 17:59:49 +0300 Subject: [PATCH] docs(go): add doctor check for gopls executable --- modules/lang/go/doctor.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/go/doctor.el b/modules/lang/go/doctor.el index f3010d30c..5a8c4ba3e 100644 --- a/modules/lang/go/doctor.el +++ b/modules/lang/go/doctor.el @@ -22,3 +22,7 @@ (require 'company-go) (unless (executable-find company-go-gocode-command) (warn! "Couldn't find gocode. Code completion won't work"))) + +(when (and (featurep! +lsp) + (not (executable-find "gopls"))) + (warn! "Couldn't find gopls."))