Change confirm completion to <CR>

This commit is contained in:
Miguel Da Silva 2024-09-11 21:35:13 +02:00
parent c88ea4938a
commit 250be667a1
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ return { -- Autocompletion
-- Accept ([y]es) the completion. -- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it. -- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet. -- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true }, -- ['<C-y>'] = cmp.mapping.confirm { select = true },
['<CR>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps, -- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines -- you can uncomment the following lines