Switch to <C-l> to confirm completions

Previous mapping of <C-y> caused issues due to y being too close to u so
fat fingers would immediately undo the completion expansion.
This commit is contained in:
Kenneth Benzie 2024-03-05 23:32:20 +00:00
parent 983d11e48c
commit e314314574

View File

@ -75,7 +75,7 @@ return {
mapping = cmp.mapping.preset.insert({
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
['<C-l>'] = cmp.mapping.confirm({ select = true }),
}),
sources = {
{ name = 'nvim_lsp' },