-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
24 lines (23 loc) · 871 Bytes
/
init.lua
File metadata and controls
24 lines (23 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- packer bootstrapping setup
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 })
end
-- startup with packer
return require('packer').startup(function(use)
-- cache plugins loading enable
require('plugins.cache')
-- packer loading itself at beginning
-- https://github.com/wbthomason/packer.nvim
use { "wbthomason/packer.nvim" }
-- essentials
require('plugins.essentials')
-- options
require('options')
-- plugins
require('plugins')
-- Automatically set up your configuration after cloning packer.nvim
if PACKER_BOOTSTRAP then require('packer').sync() end -- Put this after all plugins
end)