aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuchen Ying2017-04-06 14:17:44 -0700
committerYuchen Ying2017-10-24 22:37:21 -0700
commite1b079e50cc84bf2adde430825cb403cd2730171 (patch)
tree8a5650e8c66f4a189fba880e7cfd988d7791741a
parentb68207234f1139135e70d32740a078ff4d423bc0 (diff)
downloadvim-beancount-e1b079e50cc84bf2adde430825cb403cd2730171.tar.gz
Add linter support for ALE vim plugin.
ALE is a syntax checker similar to Syntastic, but support async in Vim8 and NeoVim.
-rw-r--r--ale_linters/beancount/bean_check.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/ale_linters/beancount/bean_check.vim b/ale_linters/beancount/bean_check.vim
new file mode 100644
index 0000000..f021439
--- /dev/null
+++ b/ale_linters/beancount/bean_check.vim
@@ -0,0 +1,7 @@
+call ale#linter#Define('beancount', {
+\ 'name': 'bean_check',
+\ 'output_stream': 'stderr',
+\ 'executable': 'bean-check',
+\ 'command': 'bean-check %s',
+\ 'callback': 'ale#handlers#HandleUnixFormatAsError',
+\})