summaryrefslogtreecommitdiff
path: root/test/linter/test_lua_language_server.vader
blob: c452983585d8bb4e9a1aed19f239e9f8c18a9297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Before:
  call ale#assert#SetUpLinterTest('lua', 'lua_language_server')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default lua-language-server settings should be correct):
  AssertLinter 'lua-language-server', ale#Escape('lua-language-server')
  AssertLSPConfig {}

Execute(lua-language-server should be configurable):
  let b:ale_lua_language_server_executable = 'billy'
  let b:ale_lua_language_server_config = {'x': 'y'}

  AssertLinter 'billy', ale#Escape('billy')
  AssertLSPConfig {'x': 'y'}