summaryrefslogtreecommitdiff
path: root/ale_linters/markdown
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/markdown
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/markdown')
-rw-r--r--ale_linters/markdown/vale.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/markdown/vale.vim b/ale_linters/markdown/vale.vim
index 43b3d34a..838c4db2 100644
--- a/ale_linters/markdown/vale.vim
+++ b/ale_linters/markdown/vale.vim
@@ -4,6 +4,6 @@
call ale#linter#Define('markdown', {
\ 'name': 'vale',
\ 'executable': 'vale',
-\ 'command': 'vale --output=line %t',
-\ 'callback': 'ale#handlers#unix#HandleAsWarning',
+\ 'command': 'vale --output=JSON %t',
+\ 'callback': 'ale#handlers#vale#Handle',
\})