mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 16:42:19 +00:00
18 lines
416 B
VimL
18 lines
416 B
VimL
|
" Author: Andrey Popp -- @andreypopp
|
||
|
" Description: Report errors in ReasonML code with Merlin
|
||
|
|
||
|
if !exists('g:merlin')
|
||
|
finish
|
||
|
endif
|
||
|
|
||
|
function! ale_linters#reason#merlin#Handle(buffer, lines) abort
|
||
|
return merlin#ErrorLocList()
|
||
|
endfunction
|
||
|
|
||
|
call ale#linter#Define('reason', {
|
||
|
\ 'name': 'merlin',
|
||
|
\ 'executable': 'ocamlmerlin',
|
||
|
\ 'command': 'true',
|
||
|
\ 'callback': 'ale_linters#reason#merlin#Handle',
|
||
|
\})
|