Skip to content

Commit

Permalink
refactor: hererocks check
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 26, 2024
1 parent 20af3fc commit 804cae0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 804cae0

Please sign in to comment.