summaryrefslogtreecommitdiff
path: root/lua/lvim/plugin-loader.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-10-17 17:29:15 +0200
committerkylo252 <[email protected]>2022-10-17 17:29:15 +0200
commit4ef07315003f723bb8e97d5a91b2bde3773ec1b8 (patch)
treee9889a492f76e3f9573228343aaba647dfd48136 /lua/lvim/plugin-loader.lua
parente4a5fe97abe500bbbe78fb137d57a59f558da05a (diff)
parent6f6cbc394d2a7e64964b6067a2f42d2e6a07824e (diff)
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'lua/lvim/plugin-loader.lua')
-rw-r--r--lua/lvim/plugin-loader.lua13
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())