summaryrefslogtreecommitdiff
path: root/ale_linters/ocaml/ols.vim
diff options
context:
space:
mode:
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',
+\})