mirror of
https://github.com/dense-analysis/ale
synced 2025-02-08 16:28:16 +00:00
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this setting applied, ALE will now check for the presence of nvim-lspconfig and automatically turn off particular LSP linters if already configured via nvim-lspconfig. For users that do not use `nvim-lspconfig`, everything should work as before.
16 lines
601 B
VimL
16 lines
601 B
VimL
" 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', get(g:, 'ale_use_global_executables', 0))
|
|
|
|
call ale#linter#Define('reason', {
|
|
\ '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'),
|
|
\})
|