File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,21 @@ function M.check()
145
145
146
146
info (" you have some plugins that require `luarocks`:\n " .. table.concat (lines , " \n " ))
147
147
end
148
- require (" lazy.pkg.rockspec" ).check ({
148
+ local ok = require (" lazy.pkg.rockspec" ).check ({
149
149
error = # need_luarocks > 0 and error or warn ,
150
150
warn = warn ,
151
151
ok = ok ,
152
152
})
153
+ if not ok then
154
+ warn (table.concat ({
155
+ " Lazy won't be able to install plugins that require `luarocks`." ,
156
+ " Here's what you can do:" ,
157
+ " - fix your `luarocks` installation" ,
158
+ Config .options .rocks .hererocks and " - disable *hererocks* with `opts.rocks.hererocks = false`"
159
+ or " - enable `hererocks` with `opts.rocks.hererocks = true`" ,
160
+ " - disable `luarocks` support completely with `opts.rocks.enabled = false`" ,
161
+ }, " \n " ))
162
+ end
153
163
else
154
164
ok (" luarocks disabled" )
155
165
end
You can’t perform that action at this time.
0 commit comments