Skip to content

Commit 48aa9d3

Browse files
RafaelZasasethanellison
authored andcommitted
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (nvim-lua#750)
1 parent 576ea4f commit 48aa9d3

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

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

0 commit comments

Comments
 (0)