nvim: fix packer bootstrap
This commit is contained in:
parent
1d64da322e
commit
549152a6ed
1 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
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'
|
vim.cmd 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
-- }}
|
-- }}
|
||||||
|
@ -488,9 +488,10 @@ return require('packer').startup({function()
|
||||||
|
|
||||||
|
|
||||||
-- Bootstrap packer if needed {
|
-- Bootstrap packer if needed {
|
||||||
if (packer_bootstrap) then
|
if (PackerBootstrap) then
|
||||||
require('packer').sync()
|
require('packer').sync()
|
||||||
end -- }
|
end
|
||||||
|
-- }
|
||||||
end,
|
end,
|
||||||
config = {
|
config = {
|
||||||
display = { open_fn = require('packer.util').float },
|
display = { open_fn = require('packer.util').float },
|
||||||
|
|
Loading…
Add table
Reference in a new issue