nvim: fix packer bootstrap

This commit is contained in:
PowerUser64 2022-08-08 17:16:36 -07:00
parent 1d64da322e
commit 549152a6ed

View file

@ -3,7 +3,7 @@
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
PackerBootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd 'packadd packer.nvim'
end
-- }}
@ -488,9 +488,10 @@ return require('packer').startup({function()
-- Bootstrap packer if needed {
if (packer_bootstrap) then
if (PackerBootstrap) then
require('packer').sync()
end -- }
end
-- }
end,
config = {
display = { open_fn = require('packer.util').float },