Add missing borders to Neovim's floating windows (#1565)

Brings behaviour closer to Vim
This commit is contained in:
Jorenar
2024-08-05 02:00:36 +02:00
committed by GitHub
parent 6b7aabde99
commit 396d248528

View File

@@ -102,6 +102,7 @@ function! s:get_float_positioning(height, width) abort
let l:height = min([l:height, max([&lines - &cmdheight - l:row, &previewheight])])
let l:style = 'minimal'
let l:border = 'double'
" Positioning is not window but screen relative
let l:opts = {
\ 'relative': 'editor',
@@ -110,6 +111,7 @@ function! s:get_float_positioning(height, width) abort
\ 'width': l:width,
\ 'height': l:height,
\ 'style': l:style,
\ 'border': l:border,
\ }
return l:opts
endfunction