Add <C-b>/<C-f> cmp mapping to scroll cmp docs (#750)

This commit is contained in:
Rafael Zasas 2024-03-15 16:12:41 +02:00 committed by GitHub
parent 7715b7c2ee
commit 452e3a73cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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.