]> git.huck.website - nvim.git/commitdiff
added: <C-y> for completion
authorHuck Boles <huck@huck.website>
Sat, 9 Mar 2024 17:05:51 +0000 (09:05 -0800)
committerHuck Boles <huck@huck.website>
Sat, 9 Mar 2024 17:05:51 +0000 (09:05 -0800)
lua/plugins/cmp.lua

index d60d6dcd6b44485ea18d3d4c558d5e3a75beb34e..8fa7af0749e908334769af9bf8ffee6de0f070dc 100644 (file)
@@ -22,8 +22,8 @@ return {
                 mapping = cmp.mapping.preset.insert({
                     ['<C-b>'] = cmp.mapping.scroll_docs(-4),
                     ['<C-f>'] = cmp.mapping.scroll_docs(4),
-                    ['<TAB>'] = cmp.mapping.complete(),
-                    ['<TAB>'] = cmp.mapping.confirm({ select = true }),
+                    ['<C-y>'] = cmp.mapping.complete(),
+                    ['<C-y>'] = cmp.mapping.confirm({ select = true }),
                     ['<C-c>'] = cmp.mapping.abort(),
                     ['<C-j>'] = cmp.mapping.select_next_item(),
                     ['<C-k>'] = cmp.mapping.select_prev_item(),