nvim-config/lua/plugins.lua
2022-02-27 21:11:17 -06:00

52 lines
1.2 KiB
Lua

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 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 }
-- Colorscheme (see autocommand below)
use { 'lunarvim/darkplus.nvim' }
-- Buffer Line
use { 'moll/vim-bbye' } -- Close buffers softly
use {
'akinsho/bufferline.nvim',
after = { 'nvim-web-devicons', 'vim-bbye' },
config = function() require'configs.bufferline'.config() end
}
-- Status Line
use { 'nvim-lualine/lualine.nvim', config = function() require'configs.lualine'.config() end }
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
]])