Skip to content

Commit

Permalink
Add <C-n>, <C-p> mappings to nvim-cmp setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Wallsten committed Apr 27, 2023
1 parent 3041115 commit efdfd6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {},
Expand Down

0 comments on commit efdfd6e

Please sign in to comment.