Skip to content

Commit 60bae91

Browse files
committed
加入 .vscode/luahelper.json 例子,可以配置使用 ';' 分割的 LUA_PATH 和 LUA_CPATH
1 parent 28e4a46 commit 60bae91

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ For for MoonCake and Lua share the same token list in LSP backend, so LSP has so
44
- keyword class, continue, default, defer, export, extension, fn, from, guard, public, static, struct, switch is keyword, can not use as variable name in Lua side
55
- keyword can not directly use as table field in MoonCake LSP, such as { false = "12" } same as { ["false"] = 12 } in Lua side, but actually moocscript lpeg can do it well outside go parser in LSP
66

7+
you can add '.vscode/luahelper.json' in project dir to config ';' seperated LUA_PATH and LUA_CPATH, more refers to my [luahelper.json](luahelper.json) for example.
8+
9+
--
10+
711
# LuaHelper Guide
812
![logo](/docs/images/logo.png)
913
## Introduction

luahelper.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"BaseDir": "./",
3+
"ProjectLuaPath": "/Users/lalawue/rocks/share/lua/5.1",
4+
"ProjectLuaCPath": "/Users/lalawue/rocks/lib/lua/5.1",
5+
"ReferMatchPathFlag": 1,
6+
"IgnoreReadFiles": [
7+
"ffi",
8+
"bit"
9+
],
10+
"IgnoreModules": [
11+
"nil",
12+
"arg",
13+
"_G",
14+
"_VERSION",
15+
"assert",
16+
"collectgarbage",
17+
"dofile",
18+
"error",
19+
"getfenv",
20+
"getmetatable",
21+
"ipairs",
22+
"load",
23+
"loadfile",
24+
"loadstring",
25+
"module",
26+
"next",
27+
"pairs",
28+
"pcall",
29+
"print",
30+
"rawequal",
31+
"rawget",
32+
"rawlen",
33+
"rawset",
34+
"require",
35+
"select",
36+
"setfenv",
37+
"setmetatable",
38+
"tonumber",
39+
"tostring",
40+
"type",
41+
"warn",
42+
"xpcall",
43+
"unpack",
44+
"io",
45+
"os",
46+
"string",
47+
"math",
48+
"table",
49+
"package",
50+
"module",
51+
"debug",
52+
"jit"
53+
]
54+
}

0 commit comments

Comments
 (0)