General reworking

clean up plugins.lua a little and make some comments better
This commit is contained in:
Robert Morrison 2022-07-15 06:42:07 +01:00
parent 050c399a44
commit c5ce4c9fce
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

View File

@ -1,19 +1,17 @@
-- this file configures my plugins
-- Plugin Config Using Packer.nvim
-- Grab Packer. (This should be OS agnostic)
-- 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 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})
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)
-- Make packer manage itself
use 'wbthomason/packer.nvim'
use 'wbthomason/packer.nvim' -- allow packer to update itself
-- Lualine over airline for now
use {
@ -31,7 +29,7 @@ return require('packer').startup(function(use)
end
}
if packer_bootstrap then
require('packer').sync()
if Packer_bootstrap then
require('packer').sync() -- make packer do a full sync on first load
end
end)