Removed syntastic and replaced it with ale
Read more here: https://github.com/w0rp/ale
This commit is contained in:
17
sources_non_forked/ale/ale_linters/reason/merlin.vim
Normal file
17
sources_non_forked/ale/ale_linters/reason/merlin.vim
Normal file
@@ -0,0 +1,17 @@
|
||||
" 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',
|
||||
\})
|
||||
Reference in New Issue
Block a user