fixed autocomplete behavior.

Previously, when you didnt want to do any completion and tried to put a
newline directly after, nvim would intrepret the enter as choosing the
first completion entry.
This commit is contained in:
Gabe Venberg 2022-09-22 15:01:33 -05:00
parent 1c1b136ba6
commit 1256688237

View file

@ -22,7 +22,7 @@ cmp.setup {
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Insert,
select = true,
select = false,
-- behavior = cmp.ConfirmBehavior.Replace,
-- select = false,
},