Added auto-sync when first opening config
This commit is contained in:
parent
d997a29169
commit
f76cf6b9da
3 changed files with 8 additions and 231 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue