diff options
Diffstat (limited to 'ale_linters/clojure/joker.vim')
-rw-r--r-- | ale_linters/clojure/joker.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ale_linters/clojure/joker.vim b/ale_linters/clojure/joker.vim index e78066fe..2f61148b 100644 --- a/ale_linters/clojure/joker.vim +++ b/ale_linters/clojure/joker.vim @@ -9,9 +9,11 @@ function! ale_linters#clojure#joker#HandleJokerFormat(buffer, lines) abort for l:match in ale#util#GetMatches(a:lines, l:pattern) let l:type = 'E' + if l:match[4] is? 'Parse warning' let l:type = 'W' endif + call add(l:output, { \ 'lnum': l:match[1] + 0, \ 'col': l:match[2] + 0, @@ -27,6 +29,6 @@ call ale#linter#Define('clojure', { \ 'name': 'joker', \ 'output_stream': 'stderr', \ 'executable': 'joker', -\ 'command': 'joker --lint %t', +\ 'command': 'joker --working-dir %s --lint %t', \ 'callback': 'ale_linters#clojure#joker#HandleJokerFormat', \}) |