doomemacs/modules/lang/nix/doctor.el
Jeetaditya Chatterjee 908ea8de5f
docs(tree-sitter): add doc checks for langs
langs being:
- elixir
- nix
- zig
2022-06-17 20:08:42 +01:00

12 lines
425 B
EmacsLisp

;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/nix/doctor.el
(unless (executable-find "nix")
(warn! "Couldn't find the nix package manager. nix-mode won't work."))
(unless (executable-find "nixfmt")
(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)")