summaryrefslogtreecommitdiffstats
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
commitd84e4d0904e229aa74b7f16365b9d85292e6319d (patch)
tree9d84875ee378bd666f79eb3b4a328684d843ef8d
parent520fa3e74e542c27899666349d22dc963f4d3205 (diff)
downloaddots-d84e4d0904e229aa74b7f16365b9d85292e6319d.tar.gz
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (#750)
-rw-r--r--nvim/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 964ff82..26774a5 100644
--- a/nvim/init.lua
+++ b/nvim/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.