languagetools: stop auto-appending --autoDetect (#2616)

Options are now configurable for languagetools, and `--autoDetect` can be removed by changing the options.
This commit is contained in:
Samuel Roeca
2019-09-12 16:22:47 -04:00
committed by w0rp
parent 34f2943fdd
commit 05ba522c9a
3 changed files with 20 additions and 2 deletions

View File

@@ -12,4 +12,11 @@ Execute(Should be able to set a custom executable):
let g:ale_languagetool_executable = 'foobar'
AssertLinter 'foobar' , ale#Escape('foobar')
\ . ' --autoDetect %s'
\ . ' --autoDetect %s'
Execute(Should be able to include custom languagetool options):
let g:ale_languagetool_options = '--language en'
" is now 'foobar' based on above global
AssertLinter 'foobar', ale#Escape('foobar')
\ . ' --language en %s'