2021-07-03 20:19:46 -04:00
|
|
|
local fn,api = vim.fn,vim.api
|
|
|
|
local packer_dir = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(packer_dir)) > 0 then
|
|
|
|
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', packer_dir})
|
|
|
|
api.nvim_command('packadd packer.nvim')
|
|
|
|
end
|
|
|
|
|
|
|
|
local packer = require('packer')
|
|
|
|
local use = packer.use
|
|
|
|
|
|
|
|
return packer.startup(
|
2021-07-04 15:03:20 -04:00
|
|
|
function(use)
|
2021-07-03 20:19:46 -04:00
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
2021-07-06 07:26:25 -04:00
|
|
|
-- UI elements
|
2021-07-03 20:19:46 -04:00
|
|
|
use {
|
2021-07-04 15:03:20 -04:00
|
|
|
'glepnir/dashboard-nvim',
|
|
|
|
setup = function()
|
|
|
|
require('modules.dashboard')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'glepnir/galaxyline.nvim',
|
|
|
|
branch = 'main',
|
|
|
|
requires = 'kyazdani42/nvim-web-devicons',
|
2021-07-03 20:19:46 -04:00
|
|
|
config = function()
|
2021-07-04 15:03:20 -04:00
|
|
|
require('modules.statusline')
|
2021-07-03 20:19:46 -04:00
|
|
|
end
|
|
|
|
}
|
2021-07-06 07:26:25 -04:00
|
|
|
use {
|
|
|
|
'akinsho/nvim-bufferline.lua',
|
|
|
|
config = function()
|
|
|
|
require('modules.bufferline')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'kyazdani42/nvim-tree.lua',
|
|
|
|
cmd = 'NvimTreeToggle',
|
|
|
|
setup = function()
|
|
|
|
require('modules.tree')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Editing
|
2021-07-03 20:19:46 -04:00
|
|
|
use {
|
|
|
|
'norcalli/nvim-colorizer.lua',
|
|
|
|
event = 'BufRead',
|
|
|
|
config = function()
|
2021-07-04 15:03:20 -04:00
|
|
|
require('modules.colorizer')
|
2021-07-03 20:19:46 -04:00
|
|
|
vim.cmd('ColorizerReloadAllBuffers')
|
|
|
|
end
|
|
|
|
}
|
2021-07-06 07:26:25 -04:00
|
|
|
|
2021-07-07 04:08:00 -04:00
|
|
|
-- Git
|
|
|
|
use {
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
requires = 'nvim-lua/plenary.nvim',
|
|
|
|
config = function()
|
|
|
|
require('modules.gitgutter')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2021-07-06 07:26:25 -04:00
|
|
|
-- LSP
|
2021-07-03 20:19:46 -04:00
|
|
|
end
|
|
|
|
)
|