From f7e6236fe8c1e9a31750c6d13931e591b44b5e3d Mon Sep 17 00:00:00 2001 From: Andrey Popp <8mayday@gmail.com> Date: Wed, 23 Nov 2016 18:19:36 +0300 Subject: Add ocaml linter: merlin (#177) * Add ocaml linter: merlin * Add docs for ocaml-merlin integration. * Remove annoying error message from ocaml merlin linter * Update doc to list merlin linter --- ale_linters/ocaml/merlin.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ale_linters/ocaml/merlin.vim (limited to 'ale_linters') diff --git a/ale_linters/ocaml/merlin.vim b/ale_linters/ocaml/merlin.vim new file mode 100644 index 00000000..f8e0329e --- /dev/null +++ b/ale_linters/ocaml/merlin.vim @@ -0,0 +1,19 @@ +" 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', +\}) + -- cgit v1.2.3