mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
perf(rocks): vim.fn.executable
is slow on WSL2, so only check for luarocks
when needed. Closes #1585
This commit is contained in:
parent
8dd947fccd
commit
9ab3061690
4 changed files with 21 additions and 11 deletions
|
@ -336,16 +336,16 @@ function M.load()
|
|||
end
|
||||
|
||||
-- add hererocks when enabled and needed
|
||||
if Config.options.rocks.hererocks then
|
||||
for _, plugin in pairs(Config.spec.plugins) do
|
||||
if plugin.build == "rockspec" then
|
||||
for _, plugin in pairs(Config.spec.plugins) do
|
||||
if plugin.build == "rockspec" then
|
||||
if Config.hererocks() then
|
||||
Config.spec.meta:add({
|
||||
"luarocks/hererocks",
|
||||
build = "rockspec",
|
||||
lazy = true,
|
||||
})
|
||||
break
|
||||
end
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue