From 33397b0d00146b6df14e67187292f1a92969af00 Mon Sep 17 00:00:00 2001 From: Rafael Zasas <42390827+RafaelZasas@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:22:17 +0200 Subject: [PATCH] Add / cmp mapping to scroll cmp docs --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index c570c4c2..840a9f3c 100644 --- a/init.lua +++ b/init.lua @@ -679,6 +679,10 @@ require('lazy').setup({ -- Select the [p]revious item [''] = cmp.mapping.select_prev_item(), + -- scroll [u]p and [d]own the documentation window + [""] = cmp.mapping.scroll_docs(-4), + [""] = cmp.mapping.scroll_docs(4), + -- Accept ([y]es) the completion. -- This will auto-import if your LSP supports it. -- This will expand snippets if the LSP sent a snippet.