mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-27 03:52:26 +08:00
Replace every stdin-wrapper script with the new %t formatting support
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
let g:ale_tex_lacheck_executable =
|
||||
\ get(g:, 'ale_tex_lacheck_executable', 'lacheck')
|
||||
|
||||
function! ale_linters#tex#lacheck#GetExecutable(buffer) abort
|
||||
return g:ale_tex_lacheck_executable
|
||||
endfunction
|
||||
|
||||
function! ale_linters#tex#lacheck#GetCommand(buffer) abort
|
||||
return g:ale_tex_lacheck_executable . ' %t'
|
||||
endfunction
|
||||
|
||||
function! ale_linters#tex#lacheck#Handle(buffer, lines) abort
|
||||
" Mattes lines like:
|
||||
"
|
||||
@@ -43,8 +51,7 @@ endfunction
|
||||
|
||||
call ale#linter#Define('tex', {
|
||||
\ 'name': 'lacheck',
|
||||
\ 'executable': 'lacheck',
|
||||
\ 'command': g:ale#util#stdin_wrapper . ' .tex '
|
||||
\ . g:ale_tex_lacheck_executable,
|
||||
\ 'executable_callback': 'ale_linters#tex#lacheck#GetExecutable',
|
||||
\ 'command_callback': 'ale_linters#tex#lacheck#GetCommand',
|
||||
\ 'callback': 'ale_linters#tex#lacheck#Handle'
|
||||
\})
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
call ale#linter#Define('tex', {
|
||||
\ 'name': 'proselint',
|
||||
\ 'executable': 'proselint',
|
||||
\ 'command': g:ale#util#stdin_wrapper . ' .tex proselint',
|
||||
\ 'command': 'proselint %t',
|
||||
\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning',
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user