We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77edda1 commit ae4881dCopy full SHA for ae4881d
lua/lazy/health.lua
@@ -18,10 +18,12 @@ function M.check()
18
error("'git' not installed?")
19
end
20
21
- if vim.fn.executable("luarocks") == 1 then
22
- ok("'luarocks' installed")
23
- else
24
- warn("'luarocks' not installed")
+ if Config.options.rocks.enabled then
+ if vim.fn.executable("luarocks") == 1 then
+ ok("'luarocks' installed")
+ else
25
+ error("'luarocks' not installed. Either install it or set opts.rocks.enabled = false")
26
+ end
27
28
29
local sites = vim.opt.packpath:get()
0 commit comments