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()
|
2021-07-07 15:33:29 -04:00
|
|
|
require('modules.nvimtree')
|
2021-07-06 07:26:25 -04:00
|
|
|
end
|
|
|
|
}
|
2021-07-07 15:33:29 -04:00
|
|
|
use {
|
|
|
|
'folke/which-key.nvim',
|
2021-07-08 16:08:10 -04:00
|
|
|
config = function()
|
|
|
|
require('modules.whichkey')
|
|
|
|
end
|
2021-07-07 15:33:29 -04:00
|
|
|
}
|
2021-07-06 07:26:25 -04:00
|
|
|
|
2021-07-07 15:33:29 -04:00
|
|
|
-- Utils
|
2021-07-03 20:19:46 -04:00
|
|
|
use {
|
2021-07-07 15:33:29 -04:00
|
|
|
'akinsho/nvim-toggleterm.lua',
|
2021-07-03 20:19:46 -04:00
|
|
|
config = function()
|
2021-07-08 16:08:10 -04:00
|
|
|
require('modules.terminal')
|
2021-07-03 20:19:46 -04:00
|
|
|
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-07 15:33:29 -04:00
|
|
|
-- Highlighting
|
|
|
|
use {
|
|
|
|
'norcalli/nvim-colorizer.lua',
|
|
|
|
event = 'BufRead',
|
|
|
|
config = function()
|
|
|
|
require('modules.colorizer')
|
|
|
|
vim.cmd('ColorizerReloadAllBuffers')
|
|
|
|
end
|
|
|
|
}
|
2021-07-08 16:08:10 -04:00
|
|
|
use {
|
|
|
|
'lukas-reineke/indent-blankline.nvim',
|
|
|
|
config = function()
|
|
|
|
require('modules.blankline')
|
|
|
|
end
|
|
|
|
}
|
2021-07-07 15:33:29 -04:00
|
|
|
use {
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
run = ':TSUpdate',
|
|
|
|
event = 'BufRead',
|
|
|
|
config = function()
|
|
|
|
require('modules.treesitter')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'p00f/nvim-ts-rainbow',
|
|
|
|
after = 'nvim-treesitter',
|
|
|
|
config = function()
|
|
|
|
require('modules.ts-rainbow')
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'romgrk/nvim-treesitter-context',
|
|
|
|
after = 'nvim-treesitter'
|
|
|
|
}
|
|
|
|
|
2021-07-06 07:26:25 -04:00
|
|
|
-- LSP
|
2021-07-07 15:33:29 -04:00
|
|
|
use {
|
|
|
|
'neovim/nvim-lspconfig'
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'kabouzeid/nvim-lspinstall',
|
|
|
|
after = 'nvim-lspconfig'
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Editing
|
|
|
|
use {
|
|
|
|
'terrortylor/nvim-comment',
|
|
|
|
cmd = 'CommentToggle',
|
|
|
|
config = function()
|
|
|
|
require('nvim_comment').setup()
|
|
|
|
end
|
|
|
|
}
|
|
|
|
use {
|
|
|
|
'windwp/nvim-autopairs',
|
|
|
|
event = 'InsertEnter',
|
|
|
|
config = function()
|
|
|
|
require('nvim-autopairs').setup()
|
|
|
|
end
|
|
|
|
}
|
2021-07-03 20:19:46 -04:00
|
|
|
end
|
|
|
|
)
|