Support zls language server for zig

This commit is contained in:
Sheheryar Parvaz
2020-07-10 20:14:12 -04:00
parent 106c27644b
commit 23c58e63d4
7 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
Before:
call ale#assert#SetUpLinterTest('zig', 'zls')
After:
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
AssertLinter 'zls', ale#Escape('zls')
Execute(The project root should be detected correctly):
AssertLSPProject ''
call ale#test#SetFilename('zig-zls-project/main.zig')
AssertLSPProject ale#path#Simplify(g:dir . '/zig-zls-project')