Some lazy loading of plugins

This commit is contained in:
Oliver Hartmann 2022-04-01 23:38:59 +02:00
parent 4462d4af5c
commit ee3b97648a

View File

@ -38,6 +38,7 @@ return require('packer').startup(function()
use({
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
event = 'BufRead',
config = get_setup('treesitter'),
})
use({
@ -78,22 +79,23 @@ return require('packer').startup(function()
})
use({
'hrsh7th/nvim-cmp',
event = 'InsertEnter',
requires = {
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
'hrsh7th/cmp-nvim-lua',
'octaltree/cmp-look',
'hrsh7th/cmp-path',
'hrsh7th/cmp-calc',
'f3fora/cmp-spell',
'hrsh7th/cmp-emoji',
'hrsh7th/cmp-cmdline',
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' },
{ 'L3MON4D3/LuaSnip', after = 'nvim-cmp' },
{ 'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lua', after = 'nvim-cmp' },
{ 'octaltree/cmp-look', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-path', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-calc', after = 'nvim-cmp' },
{ 'f3fora/cmp-spell', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-emoji', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-cmdline', after = 'nvim-cmp' },
},
config = get_setup('cmp'),
})
use({ 'L3MON4D3/LuaSnip', config = get_setup('luasnip') })
use({ 'L3MON4D3/LuaSnip', event = 'InsertEnter', config = get_setup('luasnip') })
use({ 'rafamadriz/friendly-snippets' })
use({ 'onsails/lspkind-nvim' })
use({ 'Shatur/neovim-cmake', requires = { 'mfussenegger/nvim-dap' }, config = get_setup('cmake') })
@ -106,7 +108,7 @@ return require('packer').startup(function()
'ahmedkhalf/project.nvim',
config = get_setup('project'),
})
use({ 'p00f/nvim-ts-rainbow' })
use({ 'p00f/nvim-ts-rainbow', requires = 'nvim-treesitter/nvim-treesitter', after = 'nvim-treesitter' })
use({
'windwp/nvim-autopairs',
config = get_setup('nvim-autopairs'),
@ -131,12 +133,14 @@ return require('packer').startup(function()
use({
'danymat/neogen',
requires = 'nvim-treesitter/nvim-treesitter',
after = 'nvim-treesitter',
config = get_setup('neogen'),
})
use({ 'abecodes/tabout.nvim' })
use({ 'stevearc/dressing.nvim' })
use({
'nvim-treesitter/nvim-treesitter-textobjects',
after = 'nvim-treesitter',
requires = 'nvim-treesitter/nvim-treesitter',
})
use({