2018-03-31 10:55:20 -04:00
|
|
|
" Author: Michael Jungo <michaeljungo92@gmail.com>
|
|
|
|
" Description: A language server for Reason
|
|
|
|
|
|
|
|
call ale#Set('reason_ols_executable', 'ocaml-language-server')
|
2018-06-14 06:31:12 -04:00
|
|
|
call ale#Set('reason_ols_use_global', get(g:, 'ale_use_global_executables', 0))
|
2018-03-31 10:55:20 -04:00
|
|
|
|
|
|
|
call ale#linter#Define('reason', {
|
|
|
|
\ 'name': 'ols',
|
|
|
|
\ 'lsp': 'stdio',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'executable': function('ale#handlers#ols#GetExecutable'),
|
|
|
|
\ 'command': function('ale#handlers#ols#GetCommand'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\ 'language_callback': 'ale#handlers#ols#GetLanguage',
|
2019-03-08 06:04:56 -05:00
|
|
|
\ 'project_root': function('ale#handlers#ols#GetProjectRoot'),
|
2018-03-31 10:55:20 -04:00
|
|
|
\})
|