aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVictor Wallsten <94681407+victorwallsten@users.noreply.github.com>2023-04-27 09:33:10 +0200
committerVictor Wallsten <94681407+victorwallsten@users.noreply.github.com>2023-04-27 09:33:10 +0200
commitefdfd6ed82c5d3c069f9b9240407375669f71e25 (patch)
tree8eef64e449a7c4463dc9cc2d0a052b9501bffd86 /init.lua
parent30411154154d4a9ee3361a31c7bd2007a733821b (diff)
Add <C-n>, <C-p> mappings to nvim-cmp setup
Diffstat (limited to 'init.lua')
-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 {},