Skip to content

Commit

Permalink
fix(config): on windows default concurrency is now set to 2*available…
Browse files Browse the repository at this point in the history
… parallelism. See #887
  • Loading branch information
folke committed Jun 22, 2023
1 parent 3867a81 commit d7d5842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ M.defaults = {
-- leave nil when passing the spec as the first argument to setup()
spec = nil, ---@type LazySpec
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update.
concurrency = nil, ---@type number limit the maximum amount of concurrent tasks
concurrency = jit.os:find("Windows") and (vim.loop.available_parallelism() * 2) or nil, ---@type number limit the maximum amount of concurrent tasks
git = {
-- defaults for the `Lazy log` command
-- log = { "-10" }, -- show the last 10 commits
Expand Down

0 comments on commit d7d5842

Please sign in to comment.