summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Zasas <42390827+RafaelZasas@users.noreply.github.com>2024-03-15 16:12:41 +0200
committerGitHub <noreply@github.com>2024-03-15 10:12:41 -0400
commit452e3a73cfc87995c58f8d46effa370da4fd1131 (patch)
tree4ee03862387081ee7df76dee185e3fcf5928387c
parent7715b7c2eed1a7e6ea02fd6a99a9f006c792dce4 (diff)
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (#750)
-rw-r--r--init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 964ff82..26774a5 100644
--- a/init.lua
+++ b/init.lua
@@ -674,6 +674,10 @@ require('lazy').setup({
-- Select the [p]revious item
['<C-p>'] = cmp.mapping.select_prev_item(),
+ -- scroll the documentation window [b]ack / [f]orward
+ ['<C-b>'] = cmp.mapping.scroll_docs(-4),
+ ['<C-f>'] = 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.