mirror of
https://github.com/dense-analysis/ale
synced 2024-12-14 02:15:43 +00:00
f7e6236fe8
* Add ocaml linter: merlin * Add docs for ocaml-merlin integration. * Remove annoying error message from ocaml merlin linter * Update doc to list merlin linter
20 lines
427 B
VimL
20 lines
427 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)
|
|
let l:errors = merlin#ErrorLocList()
|
|
return l:errors
|
|
endfunction
|
|
|
|
call ale#linter#Define('ocaml', {
|
|
\ 'name': 'merlin',
|
|
\ 'executable': 'ocamlmerlin',
|
|
\ 'command': 'true',
|
|
\ 'callback': 'ale_linters#ocaml#merlin#Handle',
|
|
\})
|
|
|