Skip to content

Commit e05ef37

Browse files
committed
use Enter to select autocomplete suggestion
1 parent 97478f0 commit e05ef37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,11 @@ require('lazy').setup({
733733
-- Accept ([y]es) the completion.
734734
-- This will auto-import if your LSP supports it.
735735
-- This will expand snippets if the LSP sent a snippet.
736-
['<C-y>'] = cmp.mapping.confirm { select = true },
736+
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
737737

738738
-- If you prefer more traditional completion keymaps,
739739
-- you can uncomment the following lines
740-
--['<CR>'] = cmp.mapping.confirm { select = true },
740+
['<CR>'] = cmp.mapping.confirm { select = true },
741741
--['<Tab>'] = cmp.mapping.select_next_item(),
742742
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
743743

0 commit comments

Comments
 (0)