move plugin override function to utils | increase packer clone timeout

This commit is contained in:
siduck
2021-11-13 23:07:20 +05:30
parent b4c50fa443
commit a256591e90
3 changed files with 30 additions and 35 deletions

View File

@@ -1,6 +1,4 @@
local cmd = vim.cmd
cmd "packadd packer.nvim"
vim.cmd "packadd packer.nvim"
local present, packer = pcall(require, "packer")
@@ -19,7 +17,7 @@ if not present then
packer_path,
}
cmd "packadd packer.nvim"
vim.cmd "packadd packer.nvim"
present, packer = pcall(require, "packer")
if present then
@@ -37,11 +35,10 @@ packer.init {
prompt_border = "single",
},
git = {
clone_timeout = 600, -- Timeout, in seconds, for git clones
clone_timeout = 6000, -- seconds
},
auto_clean = true,
compile_on_sync = true,
-- auto_reload_compiled = true
}
return packer