mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 04:15:39 +00:00
a02a4f2811
The ocaml filetype is currently used for several, different file formats. This causes problems as not all tools support all formats. New filetypes are introduced to support this separation, this needs some changes in ale that are fortunately backwards-compatible. These change add ocamlinterface file support for ocp-indent, merlin, ocamlformat and ocaml-lsp. For ocaml-lsp I took the liberty to add all recognised language ids, even if they are not supported. ols has not been changed as the project has been abandoned since 2019.
14 lines
492 B
VimL
14 lines
492 B
VimL
" 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('ocamlinterface', {
|
|
\ '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'),
|
|
\})
|