diff options
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index c10fe75e..f6cb4651 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -16,14 +16,19 @@ 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 = 40, + max_jobs = max_jobs, log = { level = "warn" }, git = { - clone_timeout = 300, + clone_timeout = 120, }, display = { open_fn = function() @@ -106,10 +111,8 @@ function plugin_loader.load(configurations) end end end) - -- colorscheme must get called after plugins are loaded or it will break new installs. - vim.g.colors_name = lvim.colorscheme - vim.cmd("colorscheme " .. lvim.colorscheme) end, debug.traceback) + if not status_ok then Log:warn "problems detected while loading plugins' configurations" Log:trace(debug.traceback()) |