nvim-config/lua/plugins.lua
2022-02-28 18:24:14 -06:00

109 lines
2.6 KiB
Lua

-- Make sure to install packer via the AUR
-- $ yay -S nvim-packer-git
local packer_status_ok, packer = pcall(require, "packer")
if not packer_status_ok then
return
end
vim.cmd [[packadd packer.nvim]]
packer.startup {
function(use)
--
-- General
--
-- General Lua functions
use { 'nvim-lua/plenary.nvim' }
use { 'nvim-lua/popup.nvim' }
-- General optimizations
use { 'lewis6991/impatient.nvim' }
use { 'nathom/filetype.nvim', config = function() vim.g.did_load_filetypes = 1 end }
-- General Assets/Resources
use { 'kyazdani42/nvim-web-devicons', config = function() require'configs.icons'.config() end }
--
-- Style
--
-- Colorscheme (see autocommand below)
use { 'lunarvim/darkplus.nvim' }
-- Buffer Line
use { 'moll/vim-bbye' } -- Close buffers softly
use {
'akinsho/bufferline.nvim',
requires = {
{ 'kyazdani42/nvim-web-devicons' }
},
config = function() require'configs.bufferline'.config() end
}
-- Status Line
use { 'nvim-lualine/lualine.nvim', config = function() require'configs.lualine'.config() end }
-- NvimTree
use {
'kyazdani42/nvim-tree.lua',
requires = {
{ 'kyazdani42/nvim-web-devicons' }
},
config = function() require'configs.nvim-tree'.config() end
}
-- Git marks
use { 'lewis6991/gitsigns.nvim', config = function() require'configs.gitsigns'.config() end }
-- Show indentation
use { 'lukas-reineke/indent-blankline.nvim', config = function() require'configs.indent-blankline'.config() end }
-- Telescope (find files, words, git commits, etc)
use { 'nvim-telescope/telescope.nvim', config = function() require'configs.telescope'.config() end }
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
--
-- Treesitter
--
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
event = 'BufRead',
config = function() require'configs.treesitter'.config() end
}
-- Auto-close tags
use { 'windwp/nvim-ts-autotag', after = 'nvim-treesitter' }
-- Context-based auto commenting
use { 'JoosepAlviste/nvim-ts-context-commentstring', after = 'nvim-treesitter' }
--
-- LSP / Auto Complete
--
--
-- Quality of Life
--
-- Commenting
use { 'numToStr/Comment.nvim', config = function() require'configs.comment'.config() end }
-- Automatically colorize color strings (#f1b8f1)
use { 'norcalli/nvim-colorizer.lua', config = function() require'configs.colorizer'.config() end }
-- Remember your last place when opening a file
use { 'farmergreg/vim-lastplace' }
end,
config = {
display = {
open_fn = function()
return require'packer.util'.float { border = 'rounded' }
end
}
}
}