mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Make my own settings have the final say on how a filetype should behave, instead of some 3rd party plugins.
7 lines
252 B
VimL
7 lines
252 B
VimL
" 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)
|