add syntastic_loc_list_height option
This allows the user to specify what height the loc list should be opened at. Solves issue #153.
This commit is contained in:
parent
5e438933f3
commit
9a6895d28d
@ -203,6 +203,14 @@ detected, but not opened automatically. >
|
|||||||
let g:syntastic_auto_loc_list=2
|
let g:syntastic_auto_loc_list=2
|
||||||
<
|
<
|
||||||
|
|
||||||
|
*'syntastic_loc_list_height'*
|
||||||
|
Default: 10
|
||||||
|
Use this option to specify the height of the location lists that syntastic
|
||||||
|
opens. >
|
||||||
|
let g:syntastic_loc_list_height=5
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
*'syntastic_mode_map'*
|
*'syntastic_mode_map'*
|
||||||
Default: { "mode": "active",
|
Default: { "mode": "active",
|
||||||
"active_filetypes": [],
|
"active_filetypes": [],
|
||||||
|
@ -81,6 +81,10 @@ if !exists("g:syntastic_check_on_open")
|
|||||||
let g:syntastic_check_on_open = 0
|
let g:syntastic_check_on_open = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !exists("g:syntastic_loc_list_height")
|
||||||
|
let g:syntastic_loc_list_height = 10
|
||||||
|
endif
|
||||||
|
|
||||||
command! SyntasticToggleMode call s:ToggleMode()
|
command! SyntasticToggleMode call s:ToggleMode()
|
||||||
command! SyntasticCheck call s:UpdateErrors(0) <bar> redraw!
|
command! SyntasticCheck call s:UpdateErrors(0) <bar> redraw!
|
||||||
command! Errors call s:ShowLocList()
|
command! Errors call s:ShowLocList()
|
||||||
@ -340,7 +344,7 @@ endfunction
|
|||||||
function! s:ShowLocList()
|
function! s:ShowLocList()
|
||||||
if !empty(s:LocList())
|
if !empty(s:LocList())
|
||||||
let num = winnr()
|
let num = winnr()
|
||||||
lopen
|
exec "lopen " . g:syntastic_loc_list_height
|
||||||
if num != winnr()
|
if num != winnr()
|
||||||
wincmd p
|
wincmd p
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user