nvim: Increase height of floating window

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-03-30 13:10:27 +05:30
parent 8b23f5c564
commit e5399b0c02

View file

@ -719,7 +719,7 @@ endfunction
" Stolen from https://github.com/camspiers/dotfiles/blob/master/files/.config/nvim/init.vim
function! CreateCentredFloatingWindow()
let width = float2nr(&columns * 0.8)
let height = float2nr(&lines * 0.4)
let height = float2nr(&lines * 0.6)
let top = ((&lines - height) / 2) - 1
let left = (&columns - width) / 2
let opts = {'relative': 'editor', 'row': top, 'col': left, 'width': width, 'height': height, 'style': 'minimal'}