From e1b079e50cc84bf2adde430825cb403cd2730171 Mon Sep 17 00:00:00 2001 From: Yuchen Ying Date: Thu, 6 Apr 2017 14:17:44 -0700 Subject: Add linter support for ALE vim plugin. ALE is a syntax checker similar to Syntastic, but support async in Vim8 and NeoVim. --- ale_linters/beancount/bean_check.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ale_linters/beancount/bean_check.vim 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', +\}) -- cgit v1.2.3-2-gb3c3 From 93498c6877c883d4d8a29a189d0c776961f1cfd0 Mon Sep 17 00:00:00 2001 From: Yuchen Ying Date: Tue, 24 Oct 2017 22:43:51 -0700 Subject: Fix default handler callback. --- ale_linters/beancount/bean_check.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/beancount/bean_check.vim b/ale_linters/beancount/bean_check.vim index f021439..477af3c 100644 --- a/ale_linters/beancount/bean_check.vim +++ b/ale_linters/beancount/bean_check.vim @@ -3,5 +3,5 @@ call ale#linter#Define('beancount', { \ 'output_stream': 'stderr', \ 'executable': 'bean-check', \ 'command': 'bean-check %s', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) -- cgit v1.2.3-2-gb3c3