doomemacs/modules/lang/zig/doctor.el

18 lines
508 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 (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
2021-03-20 15:11:04 +08:00
(unless (executable-find "zig")
(warn! "Couldn't find zig binary"))
(when (featurep! +lsp)
(unless (executable-find "zls")
(warn! "Couldn't find zls binary")))