preview.nvim/scripts/ci.sh
Barrett Ruth a7db22e982
fix(ci): pass --configpath to lua-language-server
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.
2026-03-04 14:30:51 -05:00

10 lines
349 B
Bash
Executable file

#!/bin/sh
set -eu
nix develop --command stylua --check .
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/ --configpath .luarc.json --checklevel=Warning
nix develop --command busted