summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim')
-rw-r--r--lua/lvim/plugin-loader.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index 392d3ceb..f6cb4651 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -16,11 +16,16 @@ function plugin_loader.init(opts)
local install_path = opts.install_path
or join_paths(vim.fn.stdpath "data", "site", "pack", "packer", "start", "packer.nvim")
+ local max_jobs = 100
+ if vim.fn.has "mac" == 1 then
+ max_jobs = 50
+ end
+
local init_opts = {
package_root = opts.package_root or join_paths(vim.fn.stdpath "data", "site", "pack"),
compile_path = compile_path,
snapshot_path = snapshot_path,
- max_jobs = 100,
+ max_jobs = max_jobs,
log = { level = "warn" },
git = {
clone_timeout = 120,