Skip to content

Commit dad30ff

Browse files
committed
fix: .luarc.json fixes, improved annotations
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
1 parent 1835204 commit dad30ff

2 files changed

Lines changed: 287 additions & 299 deletions

File tree

.luarc.json

Lines changed: 66 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,83 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
3+
"addonManager": {
4+
"enable": true
5+
},
6+
"codeLens": {
7+
"enable": true
8+
},
9+
"completion": {
10+
"enable": true,
11+
"autoRequire": false,
12+
"callSnippet": "Replace",
13+
"displayContext": 16,
14+
"keywordSnippet": "Replace",
15+
"postfix": "@",
16+
"requireSeparator": ".",
17+
"showParams": true,
18+
"showWord": "Enable",
19+
"workspaceWord": true
20+
},
21+
"diagnostics": {
22+
"enable": true,
23+
"libraryFiles": "Opened"
24+
},
25+
"format": {
26+
"enable": false
27+
},
28+
"hint": {
29+
"arrayIndex": "Auto",
30+
"await": true,
31+
"enable": true,
32+
"paramName": "Literal",
33+
"paramType": true,
34+
"semicolon": "Disable",
35+
"setType": true
36+
},
337
"hover": {
438
"enable": true,
539
"expandAlias": true,
6-
"enumsLimit": 50,
7-
"previewFields": 75
8-
},
9-
"workspace": {
10-
"library": [
11-
"./lua/wezterm/types"
12-
],
13-
"preloadFileSize": 1000
40+
"enumsLimit": 80,
41+
"previewFields": 75,
42+
"viewNumber": true,
43+
"viewString": true,
44+
"viewStringMax": 1000
1445
},
1546
"runtime": {
1647
"version": "Lua 5.4",
48+
"fileEncoding": "utf8",
49+
"pathStrict": false,
50+
"unicodeName": false,
1751
"path": [
1852
"?.lua",
1953
"?/init.lua"
2054
]
2155
},
22-
"hint": {
56+
"semantic": {
57+
"annotation": true,
2358
"enable": true,
24-
"setType": true,
25-
"paramName": "Literal",
26-
"paramType": true,
27-
"semicolon": "Disable"
59+
"keyword": true,
60+
"variable": true
2861
},
29-
"completion": {
30-
"callSnippet": "Replace",
31-
"keywordSnippet": "Replace",
32-
"displayContext": 8,
33-
"enable": true,
34-
"showWord": "Enable",
35-
"workspaceWord": true
62+
"signatureHelp": {
63+
"enable": true
64+
},
65+
"type": {
66+
"castNumberToInteger": false,
67+
"inferParamType": true,
68+
"weakNilCheck": true,
69+
"weakUnionCheck": true
70+
},
71+
"window": {
72+
"progressBar": false,
73+
"statusBar": false
74+
},
75+
"workspace": {
76+
"checkThirdParty": false,
77+
"useGitIgnore": true,
78+
"preloadFileSize": 2000,
79+
"library": [
80+
"./lua"
81+
]
3682
}
3783
}

0 commit comments

Comments
 (0)