Skip to content

Commit f87ba20

Browse files
RafaelZasasPeter-McKinney
authored andcommitted
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (nvim-lua#750)
1 parent 3b9f2d2 commit f87ba20

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

701+
-- scroll the documentation window [b]ack / [f]orward
702+
['<C-b>'] = cmp.mapping.scroll_docs(-4),
703+
['<C-f>'] = cmp.mapping.scroll_docs(4),
704+
701705
-- Accept ([y]es) the completion.
702706
-- This will auto-import if your LSP supports it.
703707
-- This will expand snippets if the LSP sent a snippet.

0 commit comments

Comments
 (0)