2021-03-20 15:11:04 +08:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/zig/doctor.el
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
|
|
(modulep! :tools lsp))
|
2021-03-20 15:11:04 +08:00
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2022-06-17 20:08:42 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
|
2021-03-20 15:11:04 +08:00
|
|
|
(unless (executable-find "zig")
|
2022-08-17 08:04:55 +01:00
|
|
|
(warn! "Couldn't find zig binary")
|
|
|
|
|
2023-09-13 10:10:30 +01:00
|
|
|
(unless (modulep! :editor format)
|
2022-08-17 08:04:55 +01:00
|
|
|
(warn! "Formatting will be disabled")))
|
2021-03-20 15:11:04 +08:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! +lsp)
|
2021-03-20 15:11:04 +08:00
|
|
|
(unless (executable-find "zls")
|
|
|
|
(warn! "Couldn't find zls binary")))
|