summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ale_linters/rst/vale.vim9
-rw-r--r--ale_linters/tex/vale.vim9
2 files changed, 18 insertions, 0 deletions
diff --git a/ale_linters/rst/vale.vim b/ale_linters/rst/vale.vim
new file mode 100644
index 00000000..2e654dc4
--- /dev/null
+++ b/ale_linters/rst/vale.vim
@@ -0,0 +1,9 @@
+" Author: chew-z https://github.com/chew-z
+" Description: vale for RST files
+
+call ale#linter#Define('rst', {
+\ 'name': 'vale',
+\ 'executable': 'vale',
+\ 'command': 'vale --output=JSON %t',
+\ 'callback': 'ale#handlers#vale#Handle',
+\})
diff --git a/ale_linters/tex/vale.vim b/ale_linters/tex/vale.vim
new file mode 100644
index 00000000..f64e72ac
--- /dev/null
+++ b/ale_linters/tex/vale.vim
@@ -0,0 +1,9 @@
+" Author: chew-z https://github.com/chew-z
+" Description: vale for LaTeX files
+
+call ale#linter#Define('tex', {
+\ 'name': 'vale',
+\ 'executable': 'vale',
+\ 'command': 'vale --output=JSON %t',
+\ 'callback': 'ale#handlers#vale#Handle',
+\})