chore: modernize .luarc.json to nested format and add busted library #267
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/cp.nvim#267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The current
.luarc.jsonuses the flat key format ("runtime.version","workspace.library"as top-level dotted strings) rather than the standard nested object format used by the Neovim project's own.luarc.jsonand the LuaLS schema. Both formats work, but the nested format is what LuaLS tooling and the official JSON schema expect, and what most Neovim plugin boilerplates ship.Additionally,
tests/uses busted (declared incp.nvim-scm-1.rockspecas a test dependency), but the busted library path is not included in.luarc.json, meaning LuaLS reports unknown globals (describe,it,before_each, etc.) in test files. These are currently handled viavim.yaml(selene config) but not in the LuaLS workspace.Proposed solution
Migrate to nested format and add the busted LuaLS library:
The
${3rd}/busted/librarypath provides LuaLS types fordescribe,it,before_each,spy,stubetc. — matching what the selenevim.yamlalready declares as globals.Alternatives considered
Keeping the flat format. It works identically at runtime, but the nested format is the documented standard and reduces confusion for contributors familiar with the LuaLS schema.