e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
17 lines
410 B
VimL
17 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',
|
|
\})
|