lazy load cmp

This commit is contained in:
Oliver Hartmann 2022-12-10 19:29:28 +01:00
parent 1d9f94e650
commit 58ae25ee12

View File

@ -95,26 +95,26 @@ return require('packer').startup(function()
use({ use({
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
requires = { requires = {
{ 'hrsh7th/cmp-buffer' }, { 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp' }, { 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' },
{ 'L3MON4D3/LuaSnip' }, { 'L3MON4D3/LuaSnip', after = 'nvim-cmp' },
{ 'saadparwaiz1/cmp_luasnip' }, { 'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lua' }, { 'hrsh7th/cmp-nvim-lua', after = 'nvim-cmp' },
{ 'octaltree/cmp-look' }, { 'octaltree/cmp-look', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-path' }, { 'hrsh7th/cmp-path', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-calc' }, { 'hrsh7th/cmp-calc', after = 'nvim-cmp' },
{ 'f3fora/cmp-spell' }, { 'f3fora/cmp-spell', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-emoji' }, { 'hrsh7th/cmp-emoji', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-cmdline' }, { 'hrsh7th/cmp-cmdline', after = 'nvim-cmp' },
{ 'dmitmel/cmp-cmdline-history' }, { 'dmitmel/cmp-cmdline-history', after = 'nvim-cmp' },
{ 'ray-x/cmp-treesitter' }, { 'ray-x/cmp-treesitter', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp-signature-help' }, { 'hrsh7th/cmp-nvim-lsp-signature-help', after = 'nvim-cmp' },
{ 'p00f/clangd_extensions.nvim' }, { 'p00f/clangd_extensions.nvim' },
{ 'rcarriga/cmp-dap',
opt = true,
module = 'cmp_dap' },
}, },
config = get_setup('my_cmp'), config = get_setup('my_cmp'),
module = { "nvim-cmp", "cmp" },
event = "InsertEnter *",
})
use({ use({
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
config = get_setup('luasnip'), config = get_setup('luasnip'),
@ -238,6 +238,10 @@ return require('packer').startup(function()
'rcarriga/nvim-dap-ui', 'rcarriga/nvim-dap-ui',
module = 'dapui' module = 'dapui'
}, },
{
'rcarriga/cmp-dap',
module = 'cmp_dap'
},
}, },
keys = { keys = {
{ 'n', '<F5>' }, { 'n', '<F5>' },