summaryrefslogtreecommitdiff
path: root/ale_linters/reason
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/reason')
-rw-r--r--ale_linters/reason/ols.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/ale_linters/reason/ols.vim b/ale_linters/reason/ols.vim
new file mode 100644
index 00000000..b2cd5f79
--- /dev/null
+++ b/ale_linters/reason/ols.vim
@@ -0,0 +1,14 @@
+" Author: Michael Jungo <michaeljungo92@gmail.com>
+" Description: A language server for Reason
+
+call ale#Set('reason_ols_executable', 'ocaml-language-server')
+call ale#Set('reason_ols_use_global', 0)
+
+call ale#linter#Define('reason', {
+\ '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',
+\})