2018-07-16 17:13:53 +02:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/nix/doctor.el
|
|
|
|
|
2018-07-17 10:03:17 +02:00
|
|
|
(unless (executable-find "nix")
|
|
|
|
(warn! "Couldn't find the nix package manager. nix-mode won't work."))
|
|
|
|
|
2023-10-11 10:18:34 +08:00
|
|
|
(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."))))
|
2018-07-16 17:13:53 +02:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2022-06-17 20:08:42 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|