chore: convert .luarc.json to nested format and add busted library
Problem: .luarc.json used the flat dotted-key format which is not the
canonical LuaLS schema. The busted library was also missing, so LuaLS
could not resolve types in test files.
Solution: rewrite .luarc.json using nested objects and add
${3rd}/busted/library to workspace.library.
This commit is contained in:
parent
d274e0c117
commit
81f5273840
1 changed files with 14 additions and 6 deletions
20
.luarc.json
20
.luarc.json
|
|
@ -1,8 +1,16 @@
|
||||||
{
|
{
|
||||||
"runtime.version": "LuaJIT",
|
"runtime": {
|
||||||
"runtime.path": ["lua/?.lua", "lua/?/init.lua"],
|
"version": "LuaJIT",
|
||||||
"diagnostics.globals": ["vim"],
|
"path": ["lua/?.lua", "lua/?/init.lua"]
|
||||||
"workspace.library": ["$VIMRUNTIME/lua", "${3rd}/luv/library"],
|
},
|
||||||
"workspace.checkThirdParty": false,
|
"diagnostics": {
|
||||||
"completion.callSnippet": "Replace"
|
"globals": ["vim"]
|
||||||
|
},
|
||||||
|
"workspace": {
|
||||||
|
"library": ["$VIMRUNTIME/lua", "${3rd}/luv/library", "${3rd}/busted/library"],
|
||||||
|
"checkThirdParty": false
|
||||||
|
},
|
||||||
|
"completion": {
|
||||||
|
"callSnippet": "Replace"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue