Add <C-n>, <C-p> mappings to nvim-cmp setup

This commit is contained in:
Victor Wallsten 2023-04-27 09:33:10 +02:00
parent 3041115415
commit efdfd6ed82
No known key found for this signature in database

View File

@ -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 {},