refactor: hererocks check

This commit is contained in:
Folke Lemaitre 2024-06-26 19:38:45 +02:00
parent 20af3fcc4e
commit 804cae0a65
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 3 deletions

View File

@ -264,10 +264,8 @@ function M.update_rocks_state()
end)
for _, plugin in pairs(Config.plugins) do
if plugin.build == "rockspec" then
if plugin.build == "rockspec" or plugin.name == "hererocks" then
plugin._.build = not installed[plugin.name]
elseif plugin.name == "hererocks" then
plugin._.build = not vim.uv.fs_stat(Config.options.rocks.root .. "/hererocks")
end
end
end