diff options
author | Michael Jungo <michaeljungo92@gmail.com> | 2017-11-11 19:27:41 +0100 |
---|---|---|
committer | Michael Jungo <michaeljungo92@gmail.com> | 2017-11-11 19:27:41 +0100 |
commit | f8fec369e5daa1be9c3b8e580655920422542f75 (patch) | |
tree | 956f0e513cf55945bbcc27e556dbad251ea59361 /ale_linters/reason | |
parent | 9e7c493e7e6a5b7d22502aebda399e93d40a7974 (diff) | |
download | ale-f8fec369e5daa1be9c3b8e580655920422542f75.zip |
Add ocaml-language-server for OCaml and ReasonML
Diffstat (limited to 'ale_linters/reason')
-rw-r--r-- | ale_linters/reason/ols.vim | 14 |
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', +\}) |