summaryrefslogtreecommitdiff
path: root/ale_linters/mail/vale.vim
diff options
context:
space:
mode:
authorJohannes Wienke <languitar@semipol.de>2017-12-17 16:49:57 +0100
committerJohannes Wienke <languitar@semipol.de>2017-12-17 16:49:57 +0100
commit96b90b45db5070c964adb14f1a0ac67c61571648 (patch)
treeca4986326a7b316b49f7710b3a7638842fee0ff5 /ale_linters/mail/vale.vim
parentc4956657dc519aaae679b5a04af9b63b0aacabbe (diff)
downloadale-96b90b45db5070c964adb14f1a0ac67c61571648.zip
Use JSON output with vale
Switches all vale instances to JSON output and provides an appropriate handler for that. Without JSON, no end_col is provided and text highlighting only catches the first character of every result.
Diffstat (limited to 'ale_linters/mail/vale.vim')
-rw-r--r--ale_linters/mail/vale.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/mail/vale.vim b/ale_linters/mail/vale.vim
index 9b30bf65..e6dfd2ec 100644
--- a/ale_linters/mail/vale.vim
+++ b/ale_linters/mail/vale.vim
@@ -4,6 +4,6 @@
call ale#linter#Define('mail', {
\ 'name': 'vale',
\ 'executable': 'vale',
-\ 'command': 'vale --output=line %t',
-\ 'callback': 'ale#handlers#unix#HandleAsWarning',
+\ 'command': 'vale --output=JSON %t',
+\ 'callback': 'ale#handlers#vale#Handle',
\})