7c643a2d9c
Read more here: https://github.com/w0rp/ale
14 lines
512 B
VimL
14 lines
512 B
VimL
" Author: Michael Jungo <michaeljungo92@gmail.com>
|
|
" Description: A language server for OCaml
|
|
|
|
call ale#Set('ocaml_ols_executable', 'ocaml-language-server')
|
|
call ale#Set('ocaml_ols_use_global', 0)
|
|
|
|
call ale#linter#Define('ocaml', {
|
|
\ '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',
|
|
\})
|