Skip to content

Commit a7bc60b

Browse files
committed
chore: add stylua config and fix .luarc.json for Lua 5.1
1 parent 998b661 commit a7bc60b

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.luarc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
33
"runtime": {
4-
"version": "Luau"
4+
"version": "Lua 5.1"
55
},
66
"diagnostics": {
7-
"globals": ["OS_TYPE", "ARCH_TYPE"],
87
"disable": ["duplicate-set-field"]
98
},
109
"workspace": {

hooks/env_keys.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function PLUGIN:EnvKeys(ctx)
22
return {
33
{
44
key = "PATH",
5-
value = ctx.path .. "/bin"
6-
}
5+
value = ctx.path .. "/bin",
6+
},
77
}
88
end

hooks/pre_install.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ function PLUGIN:PreInstall(ctx)
55

66
return {
77
url = file,
8-
version = version
8+
version = version,
99
}
1010
end

stylua.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
column_width = 120
2+
line_endings = "Unix"
3+
indent_type = "Spaces"
4+
indent_width = 4
5+
quote_style = "AutoPreferDouble"
6+
call_parentheses = "Always"

0 commit comments

Comments
 (0)