1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Removed syntastic and replaced it with ale

Read more here:
https://github.com/w0rp/ale
This commit is contained in:
Amir Salihefendic
2018-03-31 11:55:20 -03:00
parent 37297ddae6
commit 7c643a2d9c
679 changed files with 23508 additions and 27895 deletions

View 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',
\})

View File

@ -0,0 +1,14 @@
" Author: Michael Jungo <michaeljungo92@gmail.com>
" Description: A language server for Reason
call ale#Set('reason_ols_executable', 'ocaml-language-server')
call ale#Set('reason_ols_use_global', 0)
call ale#linter#Define('reason', {
\ 'name': 'ols',
\ 'lsp': 'stdio',
\ 'executable_callback': 'ale#handlers#ols#GetExecutable',
\ 'command_callback': 'ale#handlers#ols#GetCommand',
\ 'language_callback': 'ale#handlers#ols#GetLanguage',
\ 'project_root_callback': 'ale#handlers#ols#GetProjectRoot',
\})