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
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
|
|
(modulep! :tools lsp))
|
2019-04-22 03:10:25 -04:00
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2021-10-19 19:26:26 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
|
2018-03-12 13:16:16 -04:00
|
|
|
(unless (executable-find "gore")
|
|
|
|
(warn! "Couldn't find gore. REPL will not work"))
|
|
|
|
|
2019-10-23 01:06:46 +09:00
|
|
|
(unless (executable-find "gotests")
|
|
|
|
(warn! "Couldn't find gotests. Generating tests will not work"))
|
|
|
|
|
2019-11-06 14:22:24 +01:00
|
|
|
(unless (executable-find "gomodifytags")
|
|
|
|
(warn! "Couldn't find gomodifytags. Manipulating struct tags will not work"))
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (and (modulep! :completion company)
|
|
|
|
(not (modulep! +lsp)))
|
2018-03-20 21:12:35 -04:00
|
|
|
(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")))
|
2022-04-16 17:59:49 +03:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (and (modulep! +lsp)
|
2022-04-16 17:59:49 +03:00
|
|
|
(not (executable-find "gopls")))
|
|
|
|
(warn! "Couldn't find gopls."))
|