Skip to content

Commit ae4881d

Browse files
committed
fix(health): only check for luarocks when luarocks is enabled.
1 parent 77edda1 commit ae4881d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lua/lazy/health.lua

+6-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ function M.check()
1818
error("'git' not installed?")
1919
end
2020

21-
if vim.fn.executable("luarocks") == 1 then
22-
ok("'luarocks' installed")
23-
else
24-
warn("'luarocks' not installed")
21+
if Config.options.rocks.enabled then
22+
if vim.fn.executable("luarocks") == 1 then
23+
ok("'luarocks' installed")
24+
else
25+
error("'luarocks' not installed. Either install it or set opts.rocks.enabled = false")
26+
end
2527
end
2628

2729
local sites = vim.opt.packpath:get()

0 commit comments

Comments
 (0)