From 2df0940665b52ce7bc888069ff4b57e89102bad3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 7 Mar 2022 17:42:15 +0100 Subject: [PATCH] home: vim: completion: add mapping to scroll docs --- home/vim/plugin/settings/completion.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/vim/plugin/settings/completion.vim b/home/vim/plugin/settings/completion.vim index a3e9356..cad93d0 100644 --- a/home/vim/plugin/settings/completion.vim +++ b/home/vim/plugin/settings/completion.vim @@ -51,6 +51,8 @@ cmp.setup({ }), [""] = cmp.mapping(cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }), [""] = cmp.mapping(cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), { "i", "c" }), + [""] = cmp.mapping.scroll_docs(-5), + [""] = cmp.mapping.scroll_docs(5), [""] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = false }), [""] = cmp.mapping.abort(), },