chore: speed up bootstrap for minimal.lua

* use `git://` protocol
* omit `--no-single-branch` (since plenary contains stale branches with large objects)
This commit is contained in:
Christian Clason
2021-08-13 13:42:04 +02:00
committed by GitHub
parent f557ae9081
commit 2a86f47df6

View File

@@ -69,6 +69,10 @@ body:
package_root = package_root,
compile_path = install_path .. '/plugin/packer_compiled.lua',
display = { non_interactive = true },
git = {
subcommands = { install = 'clone --depth 1 --progress' },
default_url_format = 'git://github.com/%s',
},
},
}
end
@@ -78,7 +82,7 @@ body:
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
print("Installing Telescope and dependencies. This may take a while!")
print("Installing Telescope and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()