fix(nix): make doctor check against nix-nixfmt-bin

This commit is contained in:
Yejun Su 2023-10-11 10:18:34 +08:00 committed by Yann Esposito (Yogsototh)
parent e0c784ecaa
commit 29931c6dbd
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -4,8 +4,9 @@
(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."))
(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."))))
(assert! (or (not (modulep! +tree-sitter))
(modulep! :tools tree-sitter))