Add packer bootstrap
This commit is contained in:
parent
33b812fd1e
commit
01fff3c1ec
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
17
roles/neovim/files/lua/packer.lua
Normal file
17
roles/neovim/files/lua/packer.lua
Normal 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)
|
Loading…
Add table
Reference in a new issue