Skip to content

Commit 97aa4fd

Browse files
authored
Add a commented out example of the classic complete keymaps. Fixes nvim-lua#866 (nvim-lua#868)
1 parent a0fe007 commit 97aa4fd

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
@@ -720,6 +720,12 @@ require('lazy').setup({
720720
-- This will expand snippets if the LSP sent a snippet.
721721
['<C-y>'] = cmp.mapping.confirm { select = true },
722722

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

0 commit comments

Comments
 (0)