mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix passing file to languagetool
This commit is contained in:
@@ -10,7 +10,7 @@ endfunction
|
|||||||
function! ale#handlers#languagetool#GetCommand(buffer) abort
|
function! ale#handlers#languagetool#GetCommand(buffer) abort
|
||||||
let l:executable = ale#handlers#languagetool#GetExecutable(a:buffer)
|
let l:executable = ale#handlers#languagetool#GetExecutable(a:buffer)
|
||||||
|
|
||||||
return ale#Escape(l:executable) . ' --autoDetect '
|
return ale#Escape(l:executable) . ' --autoDetect %s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#handlers#languagetool#HandleOutput(buffer, lines) abort
|
function! ale#handlers#languagetool#HandleOutput(buffer, lines) abort
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ After:
|
|||||||
|
|
||||||
Execute(The default command should be correct):
|
Execute(The default command should be correct):
|
||||||
AssertLinter 'languagetool', ale#Escape('languagetool')
|
AssertLinter 'languagetool', ale#Escape('languagetool')
|
||||||
\ . ' --autoDetect '
|
\ . ' --autoDetect %s'
|
||||||
|
|
||||||
Execute(Should be able to set a custom executable):
|
Execute(Should be able to set a custom executable):
|
||||||
let g:ale_languagetool_executable = 'foobar'
|
let g:ale_languagetool_executable = 'foobar'
|
||||||
|
|
||||||
AssertLinter 'foobar' , ale#Escape('foobar')
|
AssertLinter 'foobar' , ale#Escape('foobar')
|
||||||
\ . ' --autoDetect '
|
\ . ' --autoDetect %s'
|
||||||
|
|||||||
Reference in New Issue
Block a user