diff --git a/vim/vimrc b/vim/vimrc index c7a75ac..c51dca4 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -496,6 +496,16 @@ augroup fugitive_close autocmd BufReadPost fugitive://* set bufhidden=delete augroup END +set previewheight=12 +augroup previewheight + autocmd BufEnter ?* call PreviewHeightWorkAround() + function! PreviewHeightWorkAround() + if &previewwindow + exec 'setlocal winheight='.&previewheight + exec 'resize '.&previewheight + endif + endfunction +augroup END let g:fugitive_gitlab_domains = ['https://gitlab.robitaille.host'] let g:fugitive_gitlab_ssh_user = 'gitlab'