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