docs(tree-sitter): add doc checks for langs

langs being:
- elixir
- nix
- zig
This commit is contained in:
Jeetaditya Chatterjee 2022-06-17 20:08:42 +01:00
parent 7105292eed
commit 908ea8de5f
No known key found for this signature in database
GPG key ID: 09D54CECD2132B91
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,6 @@
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/elixir/doctor.el
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")

View file

@ -7,3 +7,6 @@
(unless (executable-find "nixfmt") (unless (executable-find "nixfmt")
(warn! "Couldn't find nixfmt. nix-format-buffer won't work.")) (warn! "Couldn't find nixfmt. nix-format-buffer won't work."))
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")

View file

@ -5,6 +5,10 @@
(featurep! :tools lsp)) (featurep! :tools lsp))
"This module requires (:tools lsp)") "This module requires (:tools lsp)")
(assert! (or (not (featurep! +tree-sitter))
(featurep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(unless (executable-find "zig") (unless (executable-find "zig")
(warn! "Couldn't find zig binary")) (warn! "Couldn't find zig binary"))