[NeoVim] Packer Bootstrap
This commit is contained in:
6
.config/nvim/lua/bootstrap.lua
Normal file
6
.config/nvim/lua/bootstrap.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
||||
@@ -1,4 +1,6 @@
|
||||
return require('packer').startup(function()
|
||||
use '~/.config/nvim/themes/solarized.nvim'
|
||||
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use 'nvim-lua/popup.nvim'
|
||||
@@ -64,4 +66,7 @@ return require('packer').startup(function()
|
||||
|
||||
use 'lervag/vimtex'
|
||||
|
||||
if Packer_Bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user