🐛 fix(nvim): cmp changes to adapt to lazyvim

This commit is contained in:
Sergio Laín 2023-10-10 10:45:36 +02:00
parent 8dabfaae17
commit 70be1da977
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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)