Add ocaml-language-server for OCaml and ReasonML

This commit is contained in:
Michael Jungo
2017-11-11 19:27:41 +01:00
parent 9e7c493e7e
commit f8fec369e5
7 changed files with 104 additions and 4 deletions

14
ale_linters/ocaml/ols.vim Normal file
View File

@@ -0,0 +1,14 @@
" 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',
\})