Skip to content

Commit

Permalink
Add <C-b>/<C-f> cmp mapping to scroll cmp docs (nvim-lua#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelZasas authored Mar 15, 2024
1 parent 7715b7c commit 452e3a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 452e3a7

Please sign in to comment.