summaryrefslogtreecommitdiff
path: root/ale_linters/lua/lua_language_server.vim
blob: ebddd4b58670072595690f8cf83921f5f07cd589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" 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'],
\   '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')},
\})