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

pull/1270/head
siduck 2 years ago
parent d327582dc0
commit 5e4b2e6a11

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

Loading…
Cancel
Save