diff options
author | Christian Chiarulli <[email protected]> | 2022-10-10 00:52:51 -0400 |
---|---|---|
committer | Christian Chiarulli <[email protected]> | 2022-10-10 00:52:51 -0400 |
commit | 34d445a052344cf0e4149459311a4b92653e8a6f (patch) | |
tree | 517f76743e2b09921412fe26f763ca4007abdb2e /lua/lvim | |
parent | 4fa96e8e791a54c7d474e6f6cc6735bb5694765b (diff) |
fix(plugins): set max jobs to 50 on mac
Diffstat (limited to 'lua/lvim')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 7 |
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, |