1
0
Fork 0
mirror of synced 2024-05-24 11:10:31 -04:00
ultimate-vim/sources_non_forked/ale/ale_linters/ocamlinterface/merlin.vim
2021-05-31 22:30:26 +02:00

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',
\})