nvim: lower packer's max_jobs to 5 in termux

This commit is contained in:
PowerUser64 2022-08-24 04:11:50 -07:00
parent 5c1f01f3a2
commit 1fd1dc8ac1

View file

@ -8,6 +8,13 @@ if fn.empty(fn.glob(install_path)) > 0 then
end
-- }}
-- Reduce the maximum number of jobs in termux (a terminal for android)
if os.getenv("TERMUX_VERSION") ~= nil then
Packer_max_jobs = 5
else
Packer_max_jobs = 100
end
local use = require('packer').use
return require('packer').startup({function()
@ -580,7 +587,7 @@ config = {
-- Don't ask before removing plugins
autoremove = true,
-- Limit max jobs to avoid getting killed on low-end hardware
max_jobs = 50,
max_jobs = Packer_max_jobs,
}})
-- how to align all plugin descriptions: select all plugins in visual line, :'<,'>Align \(.\+use { -- .\+: \+\)\@<=[^ ][^:]\+$