summaryrefslogtreecommitdiff
path: root/ale_linters/ocaml/ocamllsp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/ocaml/ocamllsp.vim')
-rw-r--r--ale_linters/ocaml/ocamllsp.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/ale_linters/ocaml/ocamllsp.vim b/ale_linters/ocaml/ocamllsp.vim
new file mode 100644
index 00000000..4ff7419c
--- /dev/null
+++ b/ale_linters/ocaml/ocamllsp.vim
@@ -0,0 +1,13 @@
+" Author: Risto Stevcev <me@risto.codes>
+" Description: The official language server for OCaml
+
+call ale#Set('ocaml_ocamllsp_use_opam', 1)
+
+call ale#linter#Define('ocaml', {
+\ 'name': 'ocamllsp',
+\ 'lsp': 'stdio',
+\ 'executable': function('ale#handlers#ocamllsp#GetExecutable'),
+\ 'command': function('ale#handlers#ocamllsp#GetCommand'),
+\ 'language': function('ale#handlers#ocamllsp#GetLanguage'),
+\ 'project_root': function('ale#handlers#ocamllsp#GetProjectRoot'),
+\})