blob: 8776310f7dd4666788187b12f955ac9b8e692141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
return {
'hrsh7th/nvim-cmp',
event = { 'InsertEnter', 'CmdlineEnter' },
dependencies = {
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-path',
},
opts = function()
local cmp = require('cmp')
return {
mapping = cmp.mapping.preset.insert(),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
}, {
{ name = 'buffer' },
}, {
{ name = 'path' },
})
}
end,
}
|