summaryrefslogtreecommitdiff
path: root/ale_linters/asciidoc/vale.vim
diff options
context:
space:
mode:
authorJeff Kreeftmeijer <jeffkreeftmeijer@gmail.com>2017-10-08 14:45:10 +0200
committerJeff Kreeftmeijer <jeffkreeftmeijer@gmail.com>2018-11-14 21:41:18 +0100
commit7c7390119966f5f8f45a02cda94c09d4fa117a63 (patch)
tree046a83de9da1f2ab3d548582d0507503da68b6f5 /ale_linters/asciidoc/vale.vim
parentdd7b2188ab2cc50d548d38f8ebfcccc1ae61983a (diff)
downloadale-7c7390119966f5f8f45a02cda94c09d4fa117a63.zip
Add Vale linter for AsciiDoc
Vale supports AsciiDoc. This patch adds a Vale linter for AsciiDoc files, which is based on the existing Markdown linter.
Diffstat (limited to 'ale_linters/asciidoc/vale.vim')
-rw-r--r--ale_linters/asciidoc/vale.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/asciidoc/vale.vim b/ale_linters/asciidoc/vale.vim
new file mode 100644
index 00000000..b3cf4547
--- /dev/null
+++ b/ale_linters/asciidoc/vale.vim
@@ -0,0 +1,9 @@
+" Author: Jeff Kreeftmeijer https://github.com/jeffkreeftmeijer
+" Description: vale for AsciiDoc files
+
+call ale#linter#Define('asciidoc', {
+\ 'name': 'vale',
+\ 'executable': 'vale',
+\ 'command': 'vale --output=line %t',
+\ 'callback': 'ale#handlers#unix#HandleAsWarning',
+\})