Skip to content

Commit 5eff178

Browse files
Changed default completion from C-Space to C-y
1 parent 2ba39c6 commit 5eff178

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
@@ -784,7 +784,7 @@ require('lazy').setup({
784784
-- Accept ([y]es) the completion.
785785
-- This will auto-import if your LSP supports it.
786786
-- This will expand snippets if the LSP sent a snippet.
787-
['<C-y>'] = cmp.mapping.confirm { select = true },
787+
['<C-Space>'] = cmp.mapping.confirm { select = true },
788788

789789
-- If you prefer more traditional completion keymaps,
790790
-- you can uncomment the following lines
@@ -795,7 +795,7 @@ require('lazy').setup({
795795
-- Manually trigger a completion from nvim-cmp.
796796
-- Generally you don't need this, because nvim-cmp will display
797797
-- completions whenever it has completion options available.
798-
['<C-Space>'] = cmp.mapping.complete {},
798+
['<C-y'] = cmp.mapping.complete {},
799799

800800
-- Think of <c-l> as moving to the right of your snippet expansion.
801801
-- So if you have a snippet that's like:

0 commit comments

Comments
 (0)