mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat(rocks): use hererocks to install luarocks when luarocks is not found
This commit is contained in:
parent
dea1f687fe
commit
d87da76679
5 changed files with 58 additions and 2 deletions
|
@ -264,8 +264,10 @@ function M.update_rocks_state()
|
|||
end)
|
||||
|
||||
for _, plugin in pairs(Config.plugins) do
|
||||
if plugin._.pkg and plugin._.pkg.source == "rockspec" and plugin.build == "rockspec" then
|
||||
if plugin.build == "rockspec" 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue