summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-04-20 19:14:49 +0200
committerGitHub <noreply@github.com>2024-04-20 13:14:49 -0400
commit2e68a2c2532d1575b717721a34efa033f4d7a88e (patch)
tree3f5c559e36c047688dd1c7615f322cb0f91bec60 /init.lua
parent9f5176fc2a30fbf5f0601ba1c84a345a4943bac2 (diff)
Add a commented out example of the classic complete keymaps. Fixes #866 (#868)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 62d2c5c..3c70d73 100644
--- a/init.lua
+++ b/init.lua
@@ -720,6 +720,12 @@ require('lazy').setup({
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
+ -- If you prefer more traditional completion keymaps,
+ -- you can uncomment the following lines
+ --['<CR>'] = cmp.mapping.confirm { select = true },
+ --['<Tab>'] = cmp.mapping.select_next_item(),
+ --['<S-Tab>'] = cmp.mapping.select_prev_item(),
+
-- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display
-- completions whenever it has completion options available.