doomemacs/modules/lang/zig/doctor.el

21 lines
583 B
EmacsLisp
Raw Normal View History

2021-03-20 15:11:04 +08:00
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/zig/doctor.el
(assert! (or (not (modulep! +lsp))
(modulep! :tools lsp))
2021-03-20 15:11:04 +08:00
"This module requires (:tools lsp)")
(assert! (or (not (modulep! +tree-sitter))
(modulep! :tools tree-sitter))
"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
(when (modulep! +lsp)
2021-03-20 15:11:04 +08:00
(unless (executable-find "zls")
(warn! "Couldn't find zls binary")))