fix: attempt to index vim.uv on <0.10 on windows

This commit is contained in:
ChuseCubr 2024-04-12 23:59:02 +08:00
commit c729a44ac5
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ M.defaults = {
spec = nil, ---@type LazySpec
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update.
---@type number? limit the maximum amount of concurrent tasks
concurrency = jit.os:find("Windows") and (vim.uv.available_parallelism() * 2) or nil,
concurrency = jit.os:find("Windows") and ((vim.uv or vim.loop).available_parallelism() * 2) or nil,
git = {
-- defaults for the `Lazy log` command
-- log = { "--since=3 days ago" }, -- show commits from the last 3 days