2017-11-11 18:27:41 +00:00
|
|
|
" Author: Michael Jungo <michaeljungo92@gmail.com>
|
|
|
|
" Description: A language server for Reason
|
|
|
|
|
|
|
|
call ale#Set('reason_ols_executable', 'ocaml-language-server')
|
2018-04-09 18:11:20 +00:00
|
|
|
call ale#Set('reason_ols_use_global', get(g:, 'ale_use_global_executables', 0))
|
2017-11-11 18:27:41 +00:00
|
|
|
|
|
|
|
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',
|
|
|
|
\})
|