Add scroll keybind to popup windows

This commit is contained in:
Victor Timofei 2021-06-15 17:44:02 +03:00
parent e082832c00
commit d7f5811ada
Signed by: vtimofei
GPG Key ID: B790DCEBE281403A
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,16 @@ nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" -------------------------------------------------------------------------------------------------
" coc.nvim scroll popup definition
"
" -------------------------------------------------------------------------------------------------
nnoremap <nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
" -------------------------------------------------------------------------------------------------
" coc.nvim default settings
"