1

When coc prompts with information about what a class / function does there's help to the right, but if I want to scroll down within this help I have to use the mouse. I'm wondering if there's a nicer alternative?

t

Edit

I have tried using the following:

coc#util#float_scroll({forward})            *coc#util#float_scroll()*

    Return expr for scrolling a floating window forward or backward. ex: >

    nnoremap <expr><C-f> coc#util#has_float() ? coc#util#float_scroll(1) : "\<C-f>"
    nnoremap <expr><C-b> coc#util#has_float() ? coc#util#float_scroll(0) : "\<C-b>"

In my init.vim as

    nnoremap <expr><C-f> coc#util#has_float() ? coc#util#float_scroll(1) : "\<C-f>"
    nnoremap <expr><C-b> coc#util#has_float() ? coc#util#float_scroll(0) : "\<C-b>"

I expected to be able to scroll down with <C-f> and up with <C-b>, neither of these worked though.

  • :help ins-completion and the sections on the popup menu didn’t give any scrolling keys of this kind. Maybe coc does? – D. Ben Knoble Aug 1 at 11:44
  • coc might, I'm not sure, and not sure where to find it. – baxx Aug 1 at 12:07
  • @D.BenKnoble just tried (edited post) didn't work for me :/ – baxx Aug 1 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.