Skip to content

Commit 7372adb

Browse files
RafaelZasasWilliam-Wolke
authored andcommitted
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (nvim-lua#750)
1 parent 32145bc commit 7372adb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,10 @@ require('lazy').setup({
675675
-- Select the [p]revious item
676676
['<C-p>'] = cmp.mapping.select_prev_item(),
677677

678+
-- scroll the documentation window [b]ack / [f]orward
679+
['<C-b>'] = cmp.mapping.scroll_docs(-4),
680+
['<C-f>'] = cmp.mapping.scroll_docs(4),
681+
678682
-- Accept ([y]es) the completion.
679683
-- This will auto-import if your LSP supports it.
680684
-- This will expand snippets if the LSP sent a snippet.

0 commit comments

Comments
 (0)