Files
doomemacs/modules/lang/nix/doctor.el
2025-05-24 17:27:30 +02:00

14 lines
481 B
EmacsLisp

;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/nix/doctor.el
(assert! (or (modulep! -tree-sitter)
(modulep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(unless (executable-find "nix")
(warn! "Couldn't find the nix package manager. nix-mode won't work."))
(when (require 'nix-mode nil t)
(unless (executable-find nix-nixfmt-bin)
(warn! (concat "Couldn't find " nix-nixfmt-bin ". nix-format-buffer won't work."))))