summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Patti <feoh@feoh.org>2023-04-27 16:20:27 -0400
committerGitHub <noreply@github.com>2023-04-27 16:20:27 -0400
commit0470d07c8c44f270bd64d0d11f5ebb8d994a1c00 (patch)
tree8eef64e449a7c4463dc9cc2d0a052b9501bffd86
parent30411154154d4a9ee3361a31c7bd2007a733821b (diff)
parentefdfd6ed82c5d3c069f9b9240407375669f71e25 (diff)
Merge pull request #289 from victorwallsten/master
Add <C-n>, <C-p> mappings to nvim-cmp setup
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 22d90cd..7fd9c54 100644
--- a/init.lua
+++ b/init.lua
@@ -457,6 +457,8 @@ cmp.setup {
end,
},
mapping = cmp.mapping.preset.insert {
+ ['<C-n>'] = cmp.mapping.select_next_item(),
+ ['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete {},