Skip to content

Commit 4d3a7bd

Browse files
committed
set up tab completion
1 parent 98875f8 commit 4d3a7bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

init.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,13 +782,13 @@ require('lazy').setup({
782782
-- Accept ([y]es) the completion.
783783
-- This will auto-import if your LSP supports it.
784784
-- This will expand snippets if the LSP sent a snippet.
785-
['<C-y>'] = cmp.mapping.confirm { select = true },
785+
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
786786

787787
-- If you prefer more traditional completion keymaps,
788788
-- you can uncomment the following lines
789-
--['<CR>'] = cmp.mapping.confirm { select = true },
790-
--['<Tab>'] = cmp.mapping.select_next_item(),
791-
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
789+
['<CR>'] = cmp.mapping.confirm { select = true },
790+
['<Tab>'] = cmp.mapping.select_next_item(),
791+
['<S-Tab>'] = cmp.mapping.select_prev_item(),
792792

793793
-- Manually trigger a completion from nvim-cmp.
794794
-- Generally you don't need this, because nvim-cmp will display

0 commit comments

Comments
 (0)