home: vim: completion: add mapping to scroll docs
This commit is contained in:
parent
3e0a5ef1a4
commit
2df0940665
|
@ -51,6 +51,8 @@ cmp.setup({
|
||||||
}),
|
}),
|
||||||
["<C-n>"] = cmp.mapping(cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
["<C-n>"] = cmp.mapping(cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
||||||
["<C-p>"] = cmp.mapping(cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
["<C-p>"] = cmp.mapping(cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }),
|
||||||
|
["<C-d>"] = cmp.mapping.scroll_docs(-5),
|
||||||
|
["<C-f>"] = cmp.mapping.scroll_docs(5),
|
||||||
["<C-y>"] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false }),
|
["<C-y>"] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false }),
|
||||||
["<C-e>"] = cmp.mapping.abort(),
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue