2017-11-11 18:27:41 +00:00
|
|
|
" Author: Michael Jungo <michaeljungo92@gmail.com>
|
|
|
|
" Description: A language server for OCaml
|
|
|
|
|
|
|
|
call ale#Set('ocaml_ols_executable', 'ocaml-language-server')
|
2018-04-09 18:11:20 +00:00
|
|
|
call ale#Set('ocaml_ols_use_global', get(g:, 'ale_use_global_executables', 0))
|
2017-11-11 18:27:41 +00:00
|
|
|
|
|
|
|
call ale#linter#Define('ocaml', {
|
|
|
|
\ 'name': 'ols',
|
|
|
|
\ 'lsp': 'stdio',
|
2019-02-22 18:05:04 +00:00
|
|
|
\ 'executable': function('ale#handlers#ols#GetExecutable'),
|
|
|
|
\ 'command': function('ale#handlers#ols#GetCommand'),
|
2020-08-18 22:03:43 +00:00
|
|
|
\ 'language': function('ale#handlers#ols#GetLanguage'),
|
2019-02-22 18:05:04 +00:00
|
|
|
\ 'project_root': function('ale#handlers#ols#GetProjectRoot'),
|
2017-11-11 18:27:41 +00:00
|
|
|
\})
|