Skip to content

Commit 6c36f2a

Browse files
dam9000monk3yd
authored andcommitted
Add a commented out example of the classic complete keymaps. Fixes nvim-lua#866 (nvim-lua#868)
1 parent f5cc2bb commit 6c36f2a

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

802+
-- If you prefer more traditional completion keymaps,
803+
-- you can uncomment the following lines
804+
--['<CR>'] = cmp.mapping.confirm { select = true },
805+
--['<Tab>'] = cmp.mapping.select_next_item(),
806+
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
807+
802808
-- Manually trigger a completion from nvim-cmp.
803809
-- Generally you don't need this, because nvim-cmp will display
804810
-- completions whenever it has completion options available.

0 commit comments

Comments
 (0)