nvim: lower packer's max_jobs to 5 in termux
This commit is contained in:
parent
5c1f01f3a2
commit
1fd1dc8ac1
1 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,13 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
end
|
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
|
local use = require('packer').use
|
||||||
|
|
||||||
return require('packer').startup({function()
|
return require('packer').startup({function()
|
||||||
|
@ -580,7 +587,7 @@ config = {
|
||||||
-- Don't ask before removing plugins
|
-- Don't ask before removing plugins
|
||||||
autoremove = true,
|
autoremove = true,
|
||||||
-- Limit max jobs to avoid getting killed on low-end hardware
|
-- 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 { -- .\+: \+\)\@<=[^ ][^:]\+$
|
-- how to align all plugin descriptions: select all plugins in visual line, :'<,'>Align \(.\+use { -- .\+: \+\)\@<=[^ ][^:]\+$
|
||||||
|
|
Loading…
Add table
Reference in a new issue