ale/ale_linters/ocaml/merlin.vim

18 lines
410 B
VimL
Raw Permalink Normal View History

" Author: Andrey Popp -- @andreypopp
" Description: Report errors in OCaml code with Merlin
if !exists('g:merlin')
2017-04-15 11:52:08 +00:00
finish
endif
function! ale_linters#ocaml#merlin#Handle(buffer, lines) abort
2017-04-15 11:52:08 +00:00
return merlin#ErrorLocList()
endfunction
call ale#linter#Define('ocaml', {
\ 'name': 'merlin',
\ 'executable': 'ocamlmerlin',
\ 'command': 'true',
\ 'callback': 'ale_linters#ocaml#merlin#Handle',
\})