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:
parent
1c1b136ba6
commit
1256688237
|
@ -22,7 +22,7 @@ cmp.setup {
|
||||||
['<C-e>'] = cmp.mapping.close(),
|
['<C-e>'] = cmp.mapping.close(),
|
||||||
['<CR>'] = cmp.mapping.confirm {
|
['<CR>'] = cmp.mapping.confirm {
|
||||||
behavior = cmp.ConfirmBehavior.Insert,
|
behavior = cmp.ConfirmBehavior.Insert,
|
||||||
select = true,
|
select = false,
|
||||||
-- behavior = cmp.ConfirmBehavior.Replace,
|
-- behavior = cmp.ConfirmBehavior.Replace,
|
||||||
-- select = false,
|
-- select = false,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue