Skip to content

Commit

Permalink
Try to fix huge :Gstatus window
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-robitail committed Jan 28, 2019
1 parent 2be4fca commit 2c2d680
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2c2d680

Please sign in to comment.