nvim: look for WEAK_SYSTEM variable as well as TERMUX_VERSION

This commit is contained in:
PowerUser64 2022-08-24 04:53:27 -07:00
parent 1fd1dc8ac1
commit 663a03ee17

View file

@ -8,8 +8,8 @@ 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
-- Reduce the maximum number of jobs in termux (a terminal for android) or if WEAK_SYSTEM is set to true
if os.getenv("TERMUX_VERSION") ~= nil or os.getenv("WEAK_SYSTEM") == "true" then
Packer_max_jobs = 5
else
Packer_max_jobs = 100