Skip to content

Commit 5f72af0

Browse files
dam9000rodolfolabiapari
authored andcommitted
Add a commented out example of the classic complete keymaps. Fixes nvim-lua#866 (nvim-lua#868)
1 parent 8dc7ee5 commit 5f72af0

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

736+
-- If you prefer more traditional completion keymaps,
737+
-- you can uncomment the following lines
738+
--['<CR>'] = cmp.mapping.confirm { select = true },
739+
--['<Tab>'] = cmp.mapping.select_next_item(),
740+
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
741+
736742
-- Manually trigger a completion from nvim-cmp.
737743
-- Generally you don't need this, because nvim-cmp will display
738744
-- completions whenever it has completion options available.

0 commit comments

Comments
 (0)