mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Add missing borders to Neovim's floating windows (#1565)
Brings behaviour closer to Vim
This commit is contained in:
@@ -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:height = min([l:height, max([&lines - &cmdheight - l:row, &previewheight])])
|
||||||
|
|
||||||
let l:style = 'minimal'
|
let l:style = 'minimal'
|
||||||
|
let l:border = 'double'
|
||||||
" Positioning is not window but screen relative
|
" Positioning is not window but screen relative
|
||||||
let l:opts = {
|
let l:opts = {
|
||||||
\ 'relative': 'editor',
|
\ 'relative': 'editor',
|
||||||
@@ -110,6 +111,7 @@ function! s:get_float_positioning(height, width) abort
|
|||||||
\ 'width': l:width,
|
\ 'width': l:width,
|
||||||
\ 'height': l:height,
|
\ 'height': l:height,
|
||||||
\ 'style': l:style,
|
\ 'style': l:style,
|
||||||
|
\ 'border': l:border,
|
||||||
\ }
|
\ }
|
||||||
return l:opts
|
return l:opts
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user