more nvim update
This commit is contained in:
parent
ce1b38e321
commit
eb03b36be0
|
@ -1,23 +1,23 @@
|
|||
local fn = vim.fn
|
||||
|
||||
local is_bootstrawp = false
|
||||
local is_bootstrap = 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
|
||||
bootstrap_output = fn.system({
|
||||
'git',
|
||||
'clone',
|
||||
'--depth', '1',
|
||||
'https://github.com/wbthomason/packer.nvim',
|
||||
install_path
|
||||
})
|
||||
is_bootstrap = true
|
||||
vim.cmd 'packloadall'
|
||||
bootstrap_output = fn.system({
|
||||
'git',
|
||||
'clone',
|
||||
'--depth', '1',
|
||||
'https://github.com/wbthomason/packer.nvim',
|
||||
install_path
|
||||
})
|
||||
is_bootstrap = true
|
||||
vim.cmd 'packloadall'
|
||||
end
|
||||
|
||||
return {
|
||||
is_bootstrap = is_bootstrap,
|
||||
bootstrap_output = bootstrap_output,
|
||||
is_bootstrap = is_bootstrap,
|
||||
bootstrap_output = bootstrap_output,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user