summaryrefslogtreecommitdiff
path: root/ale_linters/ocaml/ols.vim
blob: b26c782673d4798d7eca20562101f1ec5dcb59ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" 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', get(g:, 'ale_use_global_executables', 0))

call ale#linter#Define('ocaml', {
\   'name': 'ols',
\   'aliases': ['ocaml-language-server'],
\   'lsp': 'stdio',
\   'executable': function('ale#handlers#ols#GetExecutable'),
\   'command': function('ale#handlers#ols#GetCommand'),
\   'language': function('ale#handlers#ols#GetLanguage'),
\   'project_root': function('ale#handlers#ols#GetProjectRoot'),
\})