FollieHiyuki-dotfiles/home/.config/nvim/lua/plugins.lua

67 lines
1.7 KiB
Lua
Raw Normal View History

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(
function(use)
2021-07-03 20:19:46 -04:00
use 'wbthomason/packer.nvim'
-- UI elements
2021-07-03 20:19:46 -04:00
use {
'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()
require('modules.statusline')
2021-07-03 20:19:46 -04:00
end
}
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()
require('modules.colorizer')
2021-07-03 20:19:46 -04:00
vim.cmd('ColorizerReloadAllBuffers')
end
}
-- Git
use {
'lewis6991/gitsigns.nvim',
requires = 'nvim-lua/plenary.nvim',
config = function()
require('modules.gitgutter')
end
}
-- LSP
2021-07-03 20:19:46 -04:00
end
)