2022-01-18 01:25:46 -05:00
|
|
|
local fn = vim.fn
|
|
|
|
|
2023-07-11 15:26:11 -04:00
|
|
|
local is_bootstrap = false
|
2022-01-18 01:25:46 -05:00
|
|
|
local bootstrap_output = ''
|
|
|
|
|
|
|
|
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
2023-07-11 15:26:11 -04:00
|
|
|
bootstrap_output = fn.system({
|
|
|
|
'git',
|
|
|
|
'clone',
|
|
|
|
'--depth', '1',
|
|
|
|
'https://github.com/wbthomason/packer.nvim',
|
|
|
|
install_path
|
|
|
|
})
|
|
|
|
is_bootstrap = true
|
|
|
|
vim.cmd 'packloadall'
|
2022-01-18 01:25:46 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
2023-07-11 15:26:11 -04:00
|
|
|
is_bootstrap = is_bootstrap,
|
|
|
|
bootstrap_output = bootstrap_output,
|
2022-01-18 01:25:46 -05:00
|
|
|
}
|