X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/ale_linters/ocaml/ols.vim?ds=sidebyside diff --git a/.vim/bundle/ale/ale_linters/ocaml/ols.vim b/.vim/bundle/ale/ale_linters/ocaml/ols.vim new file mode 100644 index 00000000..b26c7826 --- /dev/null +++ b/.vim/bundle/ale/ale_linters/ocaml/ols.vim @@ -0,0 +1,15 @@ +" Author: Michael Jungo +" Description: A language server for OCaml + +call ale#Set('ocaml_ols_executable', 'ocaml-language-server') +call ale#Set('ocaml_ols_use_global', get(g:, 'ale_use_global_executables', 0)) + +call ale#linter#Define('ocaml', { +\ 'name': 'ols', +\ 'aliases': ['ocaml-language-server'], +\ 'lsp': 'stdio', +\ 'executable': function('ale#handlers#ols#GetExecutable'), +\ 'command': function('ale#handlers#ols#GetCommand'), +\ 'language': function('ale#handlers#ols#GetLanguage'), +\ 'project_root': function('ale#handlers#ols#GetProjectRoot'), +\})