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:
Barrett Ruth 2026-02-26 22:44:34 -05:00 committed by Barrett Ruth
parent d274e0c117
commit 81f5273840

View file

@ -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"
}
} }