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

@ -413,7 +413,7 @@ CONFIGURATION *lazy.nvim-lazy.nvim-configuration*
spec = nil, ---@type LazySpec spec = nil, ---@type LazySpec
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update. lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update.
---@type number? limit the maximum amount of concurrent tasks ---@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 = { git = {
-- defaults for the `Lazy log` command -- defaults for the `Lazy log` command
-- log = { "--since=3 days ago" }, -- show commits from the last 3 days -- log = { "--since=3 days ago" }, -- show commits from the last 3 days

View file

@ -18,7 +18,7 @@ M.defaults = {
spec = nil, ---@type LazySpec spec = nil, ---@type LazySpec
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update. lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update.
---@type number? limit the maximum amount of concurrent tasks ---@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 = { git = {
-- defaults for the `Lazy log` command -- defaults for the `Lazy log` command
-- log = { "--since=3 days ago" }, -- show commits from the last 3 days -- log = { "--since=3 days ago" }, -- show commits from the last 3 days