Add packer bootstrap

This commit is contained in:
flyingscorpio@clevo 2022-07-29 11:41:10 +02:00
parent 33b812fd1e
commit 01fff3c1ec
2 changed files with 18 additions and 0 deletions

View file

@ -2,6 +2,7 @@ lua require('transition')
lua require('encoding')
lua require('remaps')
lua require('spacetabs')
lua require('packer')
lua require('colors')
set runtimepath^=~/.vim runtimepath+=~/.vim/after

View file

@ -0,0 +1,17 @@
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
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
end
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end)