🐛 fix(nvim): cmp changes to adapt to lazyvim
This commit is contained in:
parent
8dabfaae17
commit
70be1da977
1 changed files with 9 additions and 4 deletions
|
@ -34,12 +34,17 @@ return {
|
||||||
behavior = cmp.ConfirmBehavior.Replace,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
select = true,
|
select = true,
|
||||||
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
|
["<C-CR>"] = function(fallback)
|
||||||
|
cmp.abort()
|
||||||
|
fallback()
|
||||||
|
end,
|
||||||
}),
|
}),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp", group_index = 1 },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "luasnip", group_index = 1 },
|
{ name = "luasnip" },
|
||||||
{ name = "buffer", group_index = 2 },
|
{ name = "path" },
|
||||||
{ name = "path", group_index = 2 },
|
}, {
|
||||||
|
{ name = "buffer" },
|
||||||
}),
|
}),
|
||||||
formatting = {
|
formatting = {
|
||||||
format = function(_, item)
|
format = function(_, item)
|
||||||
|
|
Loading…
Add table
Reference in a new issue