summaryrefslogtreecommitdiffstats
path: root/nvim/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
commitbc19e5cf996542777c5d2a003823249a20ed43ef (patch)
tree77676b5b89346d4d6cd463cd4f405c1bebfe154e /nvim/init.lua
parent3bb29f2544cabe3b71d05d27f6f0ace02ab2420a (diff)
downloaddots-bc19e5cf996542777c5d2a003823249a20ed43ef.tar.gz
Add a commented out example of the classic complete keymaps. Fixes #866 (#868)
Diffstat (limited to 'nvim/init.lua')
-rw-r--r--nvim/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 62d2c5c..3c70d73 100644
--- a/nvim/init.lua
+++ b/nvim/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.