mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
fix: attempt to index vim.uv on <0.10 on windows
This commit is contained in:
parent
31ddbea7c1
commit
c729a44ac5
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue