38 lines
964 B
Lua
38 lines
964 B
Lua
-- this file configures my plugins
|
|
|
|
-- 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)
|
|
-- Make packer manage itself
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
-- 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()
|
|
end
|
|
end)
|