Skip to content

Commit 5241f28

Browse files
committed
update config
1 parent a73b2d1 commit 5241f28

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

script/config/template.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,13 @@ local template = {
196196
),
197197
['Lua.runtime.meta'] = Type.String >> '${version} ${language} ${encoding}',
198198
['Lua.runtime.unicodeName'] = Type.Boolean,
199-
['Lua.runtime.nonstandardSymbol'] = Type.Array(Type.String),
199+
['Lua.runtime.nonstandardSymbol'] = Type.Array(Type.String << {
200+
'//', '/**/',
201+
'`',
202+
'+=', '-=', '*=', '/=',
203+
'||', '&&', '!', '!=',
204+
'continue',
205+
}),
200206
['Lua.runtime.plugin'] = Type.String,
201207
['Lua.runtime.fileEncoding'] = Type.String >> 'utf8' << {
202208
'utf8',
@@ -232,10 +238,12 @@ local template = {
232238
'Opened',
233239
'Disable',
234240
},
235-
['Lua.workspace.ignoreDir'] = Type.Array(Type.String),
241+
['Lua.workspace.ignoreDir'] = Type.Array(Type.String) >> {
242+
'.vscode',
243+
},
236244
['Lua.workspace.ignoreSubmodules'] = Type.Boolean >> true,
237245
['Lua.workspace.useGitIgnore'] = Type.Boolean >> true,
238-
['Lua.workspace.maxPreload'] = Type.Integer >> 3000,
246+
['Lua.workspace.maxPreload'] = Type.Integer >> 5000,
239247
['Lua.workspace.preloadFileSize'] = Type.Integer >> 500,
240248
['Lua.workspace.library'] = Type.Array(Type.String),
241249
['Lua.workspace.checkThirdParty'] = Type.Boolean >> true,

tools/configuration.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ end
5454
local function insertArray(conf, temp)
5555
conf.items = {
5656
type = getType(temp.sub),
57+
enum = getEnum(temp.sub),
5758
}
5859
end
5960

0 commit comments

Comments
 (0)