fix(cmp): change the confirmation behaviour to Insert

This commit is contained in:
Arman.H 2022-05-16 17:39:22 +04:30 committed by siduck
parent 5716bbcca0
commit a8fd371b08

View File

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