mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-17 22:09:47 +08:00
#427 Implement buffer variable overrides for all linter options
This commit is contained in:
@@ -13,7 +13,7 @@ function! ale_linters#tex#chktex#GetCommand(buffer) abort
|
||||
\ a:buffer,
|
||||
\ '.chktexrc')
|
||||
|
||||
let l:command = g:ale_tex_chktex_executable
|
||||
let l:command = ale#Var(a:buffer, 'tex_chktex_executable')
|
||||
" Avoid bug when used without -p (last warning has gibberish for a filename)
|
||||
let l:command .= ' -v0 -p stdin -q'
|
||||
|
||||
@@ -21,7 +21,7 @@ function! ale_linters#tex#chktex#GetCommand(buffer) abort
|
||||
let l:command .= ' -l ' . fnameescape(l:chktex_config)
|
||||
endif
|
||||
|
||||
let l:command .= ' ' . g:ale_tex_chktex_options
|
||||
let l:command .= ' ' . ale#Var(a:buffer, 'tex_chktex_options')
|
||||
|
||||
return l:command
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user