We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee290e commit 18a5fc1Copy full SHA for 18a5fc1
autoload/lsp/ui/vim/output.vim
@@ -222,7 +222,12 @@ function! s:align_preview(options) abort
222
if s:supports_floating && g:lsp_preview_float && !has('nvim')
223
" Vim popups
224
let l:pos = popup_getpos(s:winid)
225
- let l:height = min([l:pos['core_height'], winheight(0) - winline() - 2])
+ let l:below = l:pos['core_line'] < winline()`
226
+ if l:below
227
+ let l:height = min([l:pos['core_height'], winheight(0) - winline() - 2])
228
+ else
229
+ let l:height = min([l:pos['core_height'], winline() - 3])
230
+ endif
231
let l:width = l:pos['core_width']
232
233
let l:options = {
0 commit comments