Added auto-sync when first opening config

This commit is contained in:
Jef Roosens 2022-01-18 18:29:23 +01:00
parent d997a29169
commit f76cf6b9da
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
3 changed files with 8 additions and 231 deletions

View file

@ -9,10 +9,11 @@ local g = vim.g
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', 'https://github.com/wbthomason/packer.nvim', install_path})
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[ packadd packer.nvim ]]
end
require('packer').startup(function()
require('packer').startup(function(use)
use "wbthomason/packer.nvim"
-- Improves boot times
-- use {"lewis6991/impatient.nvim", rocks = 'mpack'}
@ -102,4 +103,8 @@ require('packer').startup(function()
-- LaTeX editing
use "lervag/vimtex"
if packer_bootstrap then
require('packer').sync()
end
end)