fix(ci): pass --configpath to lua-language-server (#33)

Problem: lua-language-server --check lua/ treats lua/ as its workspace
root and fails to find .luarc.json in the project root, so diagnostics
globals (vim, jit) are not loaded and every vim.* reference is flagged
as undefined-global.

Solution: pass --configpath .luarc.json explicitly, matching what the
GitHub CI action already does.
This commit is contained in:
Barrett Ruth 2026-03-04 14:31:17 -05:00 committed by GitHub
parent dd27374833
commit ec00648f7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,5 +6,5 @@ git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet
nix develop --command prettier --check .
nix fmt
git diff --exit-code -- '*.nix'
nix develop --command lua-language-server --check lua/ --checklevel=Warning
nix develop --command lua-language-server --check lua/ --configpath .luarc.json --checklevel=Warning
nix develop --command busted