feat(cmp): ctrl+CR will abort cmp and enter a new line

This commit is contained in:
Folke Lemaitre
2023-10-09 09:51:53 +02:00
parent efbe4e5793
commit d894556c37

View File

@ -66,6 +66,10 @@ return {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<C-CR>"] = function(fallback)
cmp.abort()
fallback()
end,
}),
sources = {
{ name = "nvim_lsp", group_index = 1 },