mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add ocaml-language-server for OCaml and ReasonML
This commit is contained in:
14
ale_linters/ocaml/ols.vim
Normal file
14
ale_linters/ocaml/ols.vim
Normal 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',
|
||||
\})
|
||||
Reference in New Issue
Block a user