This implements mode mirroring github workflow in scripts/lua-typecheck.sh so that it can run locally. A supporting script scripts/setup_deps.sh is created to define and download/clone dependencies (plugins), as well as download luals, neovim runtime, and create luarc.json. setup_deps.sh is now the only and authoritative source of dependencies and luals version. Neovim version still comes from lua.yaml. To fetch neovim version from lua.yaml as well as figure out the right source of neovim package, dependency on yq is introduced when running locally in "managed" mode. Dependencies, neovim runtime, and luals are downloaded to target/tests subdirectory on local machine. luarc.json is created from a template there as well. The ability to run against the live system is preserved with "--live" option. In this case it assumes that neovim is using lazy package manager and optionally Mason, so if luals is not present in path the script will try to see if it is installed by Mason. When running in github CI neovim is set up through github action while dependencies and luals are handled by the scripts.
22 lines
438 B
Plaintext
22 lines
438 B
Plaintext
{
|
|
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
|
"runtime": {
|
|
"version": "LuaJIT",
|
|
"pathStrict": true
|
|
},
|
|
"workspace": {
|
|
"library": [
|
|
"$VIMRUNTIME/lua",
|
|
"$VIMRUNTIME/lua/vim/lsp",
|
|
"$PWD/lua",
|
|
"${3rd}/luv/library",
|
|
"$DEPS_PATH/luvit-meta/library"
|
|
{{DEPS}}
|
|
],
|
|
"ignoreDir": [
|
|
"/lua"
|
|
],
|
|
"checkThirdParty": false
|
|
}
|
|
}
|