summaryrefslogtreecommitdiff
path: root/ale_linters/ocaml/ols.vim
diff options
context:
space:
mode:
authorMichael Jungo <michaeljungo92@gmail.com>2017-11-11 19:27:41 +0100
committerw0rp <devw0rp@gmail.com>2017-11-12 10:56:53 +0000
commit39107a48b99607fdebd1708cfaf0f115768c4899 (patch)
tree923d21fe70db88829abc4e13eec0784997ba20dd /ale_linters/ocaml/ols.vim
parent8e0d1f57c6f568a6845aa11a57add84a8f771b68 (diff)
downloadale-39107a48b99607fdebd1708cfaf0f115768c4899.zip
Add ocaml-language-server for OCaml and ReasonML
Diffstat (limited to 'ale_linters/ocaml/ols.vim')
-rw-r--r--ale_linters/ocaml/ols.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/ale_linters/ocaml/ols.vim b/ale_linters/ocaml/ols.vim
new file mode 100644
index 00000000..c0255a6c
--- /dev/null
+++ b/ale_linters/ocaml/ols.vim
@@ -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',
+\})