2018-03-20 21:19:37 -04:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/go/doctor.el
|
2018-03-12 13:16:16 -04:00
|
|
|
|
2019-04-22 03:10:25 -04:00
|
|
|
(assert! (or (not (featurep! +lsp))
|
|
|
|
(featurep! :tools lsp))
|
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2018-03-12 13:16:16 -04:00
|
|
|
(unless (executable-find "guru")
|
|
|
|
(warn! "Couldn't find guru. Refactoring commands (go-guru-*) won't work"))
|
|
|
|
|
|
|
|
(unless (executable-find "gore")
|
|
|
|
(warn! "Couldn't find gore. REPL will not work"))
|
|
|
|
|
2018-03-20 21:12:35 -04:00
|
|
|
(when (featurep! :completion company)
|
|
|
|
(require 'company-go)
|
2018-05-25 21:17:13 -04:00
|
|
|
(unless (executable-find company-go-gocode-command)
|
2018-03-12 13:16:16 -04:00
|
|
|
(warn! "Couldn't find gocode. Code completion won't work")))
|