add mappings to scroll docs in cmp
This commit is contained in:
@@ -86,6 +86,8 @@ cmp.setup({
|
|||||||
select = true,
|
select = true,
|
||||||
behavior = cmp.SelectBehavior.Insert,
|
behavior = cmp.SelectBehavior.Insert,
|
||||||
}),
|
}),
|
||||||
|
["<A-j>"] = cmp.mapping.scroll_docs(4),
|
||||||
|
["<A-k>"] = cmp.mapping.scroll_docs(-4),
|
||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
|
|||||||
Reference in New Issue
Block a user