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
437 B
VimL
17 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',
|
|
\})
|