mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2026-11-02 23:11:05 +01:00
18 lines
488 B
VimL
18 lines
488 B
VimL
let s:Window = vital#lsp#import('VS.Vim.Window')
|
|
|
|
"
|
|
" lsp#internal#ui#floatwin#scroll
|
|
"
|
|
function! lsp#internal#ui#floatwin#scroll(delta) abort
|
|
let l:ctx = {}
|
|
function! l:ctx.callback() abort closure
|
|
for l:winid in s:Window.find({ winid -> s:Window.is_floating(winid) })
|
|
let l:info = s:Window.info(l:winid)
|
|
call s:Window.scroll(l:winid, l:info.topline + a:delta)
|
|
endfor
|
|
endfunction
|
|
call timer_start(0, { -> l:ctx.callback() })
|
|
return "\<Ignore>"
|
|
endfunction
|
|
|