nvimconfig/lua/sherlock5512/plugins.lua
Robert Morrison c5ce4c9fce
General reworking
clean up plugins.lua a little and make some comments better
2022-07-15 06:42:07 +01:00

36 lines
1003 B
Lua

-- 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
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)
use 'wbthomason/packer.nvim' -- allow packer to update itself
-- Lualine over airline for now
use {
'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true}
}
use 'morhetz/gruvbox'
use {
'ms-jpq/chadtree',
run =
function()
_ = vim.fn.system({'python3' , '-m' , 'chadtree' , 'deps'})
vim.fn[CHADdeps](0)
end
}
if Packer_bootstrap then
require('packer').sync() -- make packer do a full sync on first load
end
end)