fix(nix): make doctor check against nix-nixfmt-bin
This commit is contained in:
parent
645c856de0
commit
47dc59f3b2
1 changed files with 3 additions and 2 deletions
|
@ -4,8 +4,9 @@
|
||||||
(unless (executable-find "nix")
|
(unless (executable-find "nix")
|
||||||
(warn! "Couldn't find the nix package manager. nix-mode won't work."))
|
(warn! "Couldn't find the nix package manager. nix-mode won't work."))
|
||||||
|
|
||||||
(unless (executable-find "nixfmt")
|
(when (require 'nix-mode nil t)
|
||||||
(warn! "Couldn't find nixfmt. nix-format-buffer won't work."))
|
(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))
|
(assert! (or (not (modulep! +tree-sitter))
|
||||||
(modulep! :tools tree-sitter))
|
(modulep! :tools tree-sitter))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue