mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
24 lines
492 B
Lua
24 lines
492 B
Lua
return {
|
|
'hrsh7th/nvim-cmp',
|
|
version = false,
|
|
event = "InsertEnter",
|
|
dependencies = {
|
|
'hrsh7th/cmp-buffer',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'L3MON4D3/LuaSnip',
|
|
'onsails/lspkind-nvim',
|
|
},
|
|
opts = require('config.plugins.cmp'),
|
|
config = function(_, opts)
|
|
local cmp = require('cmp')
|
|
|
|
cmp.setup(opts)
|
|
|
|
-- insert () on function completion using autopairs
|
|
cmp.event:on(
|
|
'confirm_done',
|
|
require('nvim-autopairs.completion.cmp').on_confirm_done()
|
|
)
|
|
end
|
|
}
|