From 81f52738406f6c7b29bc911ec165871caaa69490 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 26 Feb 2026 22:44:34 -0500 Subject: [PATCH] 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. --- .luarc.json | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.luarc.json b/.luarc.json index 19558f6..e0f7a7c 100644 --- a/.luarc.json +++ b/.luarc.json @@ -1,8 +1,16 @@ { - "runtime.version": "LuaJIT", - "runtime.path": ["lua/?.lua", "lua/?/init.lua"], - "diagnostics.globals": ["vim"], - "workspace.library": ["$VIMRUNTIME/lua", "${3rd}/luv/library"], - "workspace.checkThirdParty": false, - "completion.callSnippet": "Replace" + "runtime": { + "version": "LuaJIT", + "path": ["lua/?.lua", "lua/?/init.lua"] + }, + "diagnostics": { + "globals": ["vim"] + }, + "workspace": { + "library": ["$VIMRUNTIME/lua", "${3rd}/luv/library", "${3rd}/busted/library"], + "checkThirdParty": false + }, + "completion": { + "callSnippet": "Replace" + } }