Skip to content

Commit 804cae0

Browse files
committed
refactor: hererocks check
1 parent 20af3fc commit 804cae0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lua/lazy/core/plugin.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,8 @@ function M.update_rocks_state()
264264
end)
265265

266266
for _, plugin in pairs(Config.plugins) do
267-
if plugin.build == "rockspec" then
267+
if plugin.build == "rockspec" or plugin.name == "hererocks" then
268268
plugin._.build = not installed[plugin.name]
269-
elseif plugin.name == "hererocks" then
270-
plugin._.build = not vim.uv.fs_stat(Config.options.rocks.root .. "/hererocks")
271269
end
272270
end
273271
end

0 commit comments

Comments
 (0)