fix(cmp): added <c-n> and <c-p> to make it more consistent

This commit is contained in:
Folke Lemaitre
2023-02-11 13:29:27 +01:00
parent 151bf12a9f
commit 31ad893788

View File

@ -50,6 +50,8 @@ return {
end,
},
mapping = cmp.mapping.preset.insert({
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),