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
600 B
VimL
16 lines
600 B
VimL
" Author: w0rp <dev@w0rp.com>
|
|
" Description: lua-language-server integration (https://github.com/LuaLS/lua-language-server)
|
|
|
|
call ale#Set('lua_language_server_executable', 'lua-language-server')
|
|
call ale#Set('lua_language_server_config', {})
|
|
|
|
call ale#linter#Define('lua', {
|
|
\ 'name': 'lua_language_server',
|
|
\ 'aliases': ['lua-language-server', 'lua_ls'],
|
|
\ 'lsp': 'stdio',
|
|
\ 'executable': {b -> ale#Var(b, 'lua_language_server_executable')},
|
|
\ 'command': '%e',
|
|
\ 'project_root': function('ale#lua#FindProjectRoot'),
|
|
\ 'lsp_config': {b -> ale#Var(b, 'lua_language_server_config')},
|
|
\})
|