nvim-config/lua/plugins.lua

121 lines
2.6 KiB
Lua
Raw Normal View History

-- Make sure to install packer via the AUR
-- $ yay -S nvim-packer-git
2022-02-28 03:11:17 +00:00
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
--
2022-02-28 03:11:17 +00:00
-- 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
2022-02-28 05:45:40 +00:00
-- TODO: Currently, you have to run :PackerSync in order to get the colors working...
-- Actually was :PackerCompile.
-- This makes me think there was just a dependency problem somewhere here...
-- Now, the config may be bjorked
2022-02-28 03:11:17 +00:00
use { 'kyazdani42/nvim-web-devicons', config = function() require'configs.icons'.config() end }
--
-- Style
--
2022-02-28 03:11:17 +00:00
-- Colorscheme (see autocommand below)
use { 'lunarvim/darkplus.nvim' }
-- Buffer Line
use { 'moll/vim-bbye' } -- Close buffers softly
use {
'akinsho/bufferline.nvim',
2022-02-28 05:45:40 +00:00
requires = {
{ 'kyazdani42/nvim-web-devicons' }
},
2022-02-28 03:11:17 +00:00
config = function() require'configs.bufferline'.config() end
}
-- Status Line
use { 'nvim-lualine/lualine.nvim', config = function() require'configs.lualine'.config() end }
--
-- Navigation
--
-- NvimTree
use {
'kyazdani42/nvim-tree.lua',
2022-02-28 05:45:40 +00:00
requires = {
{ 'kyazdani42/nvim-web-devicons' }
},
config = function() require'configs.nvim-tree'.config() end
}
-- Telescope
--
-- 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
--
2022-02-28 14:41:22 +00:00
-- 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' }
2022-02-28 03:11:17 +00:00
end,
config = {
display = {
open_fn = function()
return require'packer.util'.float { border = 'rounded' }
end
}
}
}
-- For some reason, setting the color scheme has to be in an autocommand
vim.cmd([[
augroup colorscheme
autocmd!
autocmd VimEnter * colorscheme darkplus
augroup end
]])