You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
416 B
VimL
18 lines
416 B
VimL
7 years ago
|
" 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',
|
||
|
\})
|