dotfiles/nvim/lua/bootstrap.lua

24 lines
514 B
Lua
Raw Normal View History

2022-01-18 01:25:46 -05:00
local fn = vim.fn
local is_bootstrawp = false
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-08-29 17:34:37 -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-08-29 17:34:37 -04:00
is_bootstrap = is_bootstrap,
bootstrap_output = bootstrap_output,
2022-01-18 01:25:46 -05:00
}