summaryrefslogtreecommitdiff
path: root/ale_linters/ocaml
diff options
context:
space:
mode:
authorMichael Jungo <michaeljungo92@gmail.com>2017-11-11 19:27:41 +0100
committerMichael Jungo <michaeljungo92@gmail.com>2017-11-11 19:27:41 +0100
commitf8fec369e5daa1be9c3b8e580655920422542f75 (patch)
tree956f0e513cf55945bbcc27e556dbad251ea59361 /ale_linters/ocaml
parent9e7c493e7e6a5b7d22502aebda399e93d40a7974 (diff)
downloadale-f8fec369e5daa1be9c3b8e580655920422542f75.zip
Add ocaml-language-server for OCaml and ReasonML
Diffstat (limited to 'ale_linters/ocaml')
-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',
+\})