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:
parent
27a107112b
commit
c238468658
6
ftplugin/qf.vim
Normal file
6
ftplugin/qf.vim
Normal 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)
|
||||
Loading…
x
Reference in New Issue
Block a user