Skip to content

Commit 2142fa2

Browse files
committed
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (nvim-lua#750)
1 parent 5107d48 commit 2142fa2

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
@@ -674,6 +674,10 @@ require('lazy').setup({
674674
-- Select the [p]revious item
675675
['<C-p>'] = cmp.mapping.select_prev_item(),
676676

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

0 commit comments

Comments
 (0)