1
0
Fork 0
mirror of synced 2024-07-01 04:51:10 -04:00
ultimate-vim/sources_non_forked/ale/ale_linters/ocaml/merlin.vim
2018-10-14 21:43:54 +08:00

18 lines
410 B
VimL

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