summaryrefslogtreecommitdiff
path: root/ale_linters/lua/lua_language_server.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/lua/lua_language_server.vim')
-rw-r--r--ale_linters/lua/lua_language_server.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/ale_linters/lua/lua_language_server.vim b/ale_linters/lua/lua_language_server.vim
new file mode 100644
index 00000000..ebddd4b5
--- /dev/null
+++ b/ale_linters/lua/lua_language_server.vim
@@ -0,0 +1,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')},
+\})