1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Adjust quickfix window height automatically

This commit is contained in:
jdhao 2021-02-20 00:33:38 +08:00
parent 27a107112b
commit c238468658

6
ftplugin/qf.vim Normal file
View File

@ -0,0 +1,6 @@
" Set quickfix window height, see also https://github.com/lervag/vimtex/issues/1127
function! AdjustWindowHeight(minheight, maxheight)
execute max([a:minheight, min([line('$'), a:maxheight])]) . 'wincmd _'
endfunction
call AdjustWindowHeight(5, 15)