1
0
Fork 0
mirror of synced 2024-12-25 00:03:20 -05:00
ultimate-vim/sources_non_forked/ale/ale_linters/reason/merlin.vim
2022-11-21 23:06:50 +08:00

17 lines
416 B
VimL

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