Add :lang zig module

This commit is contained in:
Benjamin Tan 2021-03-20 15:11:04 +08:00
parent ce65645fb8
commit 28705030e0
No known key found for this signature in database
GPG key ID: A853F0716C413825
5 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,13 @@
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/zig/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(unless (executable-find "zig")
(warn! "Couldn't find zig binary"))
(when (featurep! +lsp)
(unless (executable-find "zls")
(warn! "Couldn't find zls binary")))