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:
parent
983d11e48c
commit
e314314574
@ -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' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user