avoid cmp to take over "<CR>" #1258

This commit is contained in:
siduck 2022-06-24 10:24:45 +05:30
parent d327582dc0
commit 5e4b2e6a11

View file

@ -60,8 +60,8 @@ local options = {
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
behavior = cmp.ConfirmBehavior.Replace,
select = false,
},
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then