Files
doomemacs/modules/lang/zig/doctor.el
Henrik Lissner 448bc5cae2 refactor: use negated flags
Ref: 7a806521a92c
2024-10-20 02:41:50 -04:00

21 lines
571 B
EmacsLisp

;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/zig/doctor.el
(assert! (or (modulep! -lsp)
(modulep! :tools lsp))
"This module requires (:tools lsp)")
(assert! (or (modulep! -tree-sitter)
(modulep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(unless (executable-find "zig")
(warn! "Couldn't find zig binary")
(unless (modulep! :editor format)
(warn! "Formatting will be disabled")))
(when (modulep! +lsp)
(unless (executable-find "zls")
(warn! "Couldn't find zls binary")))