summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorAryeh Leib Taurog <git@aryehleib.com>2019-01-04 08:57:14 +0200
committerAryeh Leib Taurog <git@aryehleib.com>2019-01-04 09:55:35 +0200
commit1f21eb0c422e8ae351981544a7e0da4f369e6144 (patch)
tree9d005542c9d20048f6f6fccbc5572686714cd809 /ale_linters
parent4a11a6337e37a1e3b5ad28f77f15979ccd47d587 (diff)
downloadale-1f21eb0c422e8ae351981544a7e0da4f369e6144.zip
fallback to elm if elm-tests isn’t available
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/elm/make.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim
index 37b8d07c..76622028 100644
--- a/ale_linters/elm/make.vim
+++ b/ale_linters/elm/make.vim
@@ -209,7 +209,11 @@ function! ale_linters#elm#make#GetExecutable(buffer) abort
let l:is_v19 = ale_linters#elm#make#IsVersionGte19(a:buffer)
if l:is_test && l:is_v19
- return ale#node#FindExecutable(a:buffer, 'elm_make', ['node_modules/.bin/elm-test'])
+ return ale#node#FindExecutable(
+\ a:buffer,
+\ 'elm_make',
+\ ['node_modules/.bin/elm-test', 'node_modules/.bin/elm']
+\ )
else
return ale#node#FindExecutable(a:buffer, 'elm_make', ['node_modules/.bin/elm'])
endif