Skip to content

Commit 8c2835e

Browse files
committed
ci: add luals libs and tidy
1 parent df8a362 commit 8c2835e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/lls-out/
1+
/luals-out/

.luarc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
33
"runtime.version" : "Lua 5.1",
4+
"workspace": {
5+
"library": [
6+
"$VIMRUNTIME",
7+
"${3rd}/luv/library"
8+
]
9+
},
410
"diagnostics": {
511
"globals": [
612
"vim"

scripts/lls-check renamed to scripts/luals-check

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22

33
# Performs a lua-language-server check on all files.
4-
# lls-check/check.json will be produced on any issues, returning 1.
5-
# Outputs check.json to stdout, all messages to stderr, to allow jq etc.
4+
# luals-out/check.json will be produced on any issues, returning 1.
5+
# Outputs only check.json to stdout, all other messages to stderr, to allow jq etc.
66

77
VER_LLS="3.7.3"
88

99
DIR_SRC="${PWD}"
10-
DIR_OUT="${DIR_SRC}/lls-out"
10+
DIR_OUT="${DIR_SRC}/luals-out"
1111
DIR_LLS="/tmp/lls"
1212

1313
# clear output
@@ -21,7 +21,6 @@ if [ ! -d "${DIR_LLS}" ]; then
2121
fi
2222

2323
# execute from within the lua-language-server directory as it expects specific file locations
24-
cd "${DIR_LLS}" || exit
2524
OUT=$("${DIR_LLS}/bin/lua-language-server" --checklevel=Information --check "${DIR_SRC}" --logpath="${DIR_OUT}" --loglevel=error)
2625
RC=$?
2726

0 commit comments

Comments
 (0)