General reworking
clean up plugins.lua a little and make some comments better
This commit is contained in:
parent
050c399a44
commit
c5ce4c9fce
|
|
@ -1,19 +1,17 @@
|
||||||
-- this file configures my plugins
|
-- Plugin Config Using Packer.nvim
|
||||||
|
|
||||||
-- Grab Packer. (This should be OS agnostic)
|
-- Grab Packer. (This should be OS agnostic)
|
||||||
-- But does require git to be installed TODO: add check for git
|
-- But does require git to be installed TODO: add check for git
|
||||||
-- by @Iron-E and @khuedoan on GitHub
|
-- by Iron-E and khuedoan on GitHub
|
||||||
|
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
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})
|
Packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||||
vim.cmd 'packadd packer.nvim'
|
vim.cmd 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
return require('packer').startup(function(use)
|
||||||
-- Make packer manage itself
|
use 'wbthomason/packer.nvim' -- allow packer to update itself
|
||||||
use 'wbthomason/packer.nvim'
|
|
||||||
|
|
||||||
-- Lualine over airline for now
|
-- Lualine over airline for now
|
||||||
use {
|
use {
|
||||||
|
|
@ -31,7 +29,7 @@ return require('packer').startup(function(use)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
if packer_bootstrap then
|
if Packer_bootstrap then
|
||||||
require('packer').sync()
|
require('packer').sync() -- make packer do a full sync on first load
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user