Skip to content

Commit

Permalink
Add missing borders to Neovim's floating windows
Browse files Browse the repository at this point in the history
Brings behaviour closer to Vim
  • Loading branch information
Jorenar committed Jul 20, 2024
1 parent 6b7aabd commit 1efb659
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/lsp/ui/vim/output.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 1efb659

Please sign in to comment.