Skip to content

Commit 1fa12b0

Browse files
dam9000John Longanecker
authored andcommitted
Add a commented out example of the classic complete keymaps. Fixes nvim-lua#866 (nvim-lua#868)
1 parent 0c9cacb commit 1fa12b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,12 @@ require('lazy').setup({
722722
-- This will expand snippets if the LSP sent a snippet.
723723
['<C-y>'] = cmp.mapping.confirm { select = true },
724724

725+
-- If you prefer more traditional completion keymaps,
726+
-- you can uncomment the following lines
727+
--['<CR>'] = cmp.mapping.confirm { select = true },
728+
--['<Tab>'] = cmp.mapping.select_next_item(),
729+
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
730+
725731
-- Manually trigger a completion from nvim-cmp.
726732
-- Generally you don't need this, because nvim-cmp will display
727733
-- completions whenever it has completion options available.

0 commit comments

Comments
 (0)