try ctrl-y for confirming snippets

This commit is contained in:
Noa Aarts 2024-03-13 14:27:38 +01:00
parent ca7d20c413
commit 24f6b87e6b

View file

@ -728,7 +728,7 @@ require("lazy").setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
["<CR>"] = cmp.mapping.confirm({ cmp.ConfirmBehavior.Replace, select = true }),
["<C-y>"] = cmp.mapping.confirm({ cmp.ConfirmBehavior.Replace, select = true }),
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display