diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 21:32:46 +0800 |
commit | 735210cb6ba3e4e0689efc3155319b0f195eac8d (patch) | |
tree | 31eddc8c6a31863b91cee7351e3799f65646f6ce /script/config/template.lua | |
parent | 680e6c9848a6e5f43ccce11561ec98839822bdea (diff) | |
download | lua-language-server-735210cb6ba3e4e0689efc3155319b0f195eac8d.zip |
cleanup
Diffstat (limited to 'script/config/template.lua')
-rw-r--r-- | script/config/template.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/script/config/template.lua b/script/config/template.lua index 45310c7e..c37a6262 100644 --- a/script/config/template.lua +++ b/script/config/template.lua @@ -218,9 +218,7 @@ local template = { >> util.deepCopy(define.DiagnosticDefaultSeverity), ['Lua.diagnostics.neededFileStatus'] = Type.Hash(Type.String, Type.String) >> util.deepCopy(define.DiagnosticDefaultNeededFileStatus), - ['Lua.diagnostics.disableScheme'] = Type.Hash(Type.String, Type.Boolean, ';') >> { - ['git'] = true, - }, + ['Lua.diagnostics.disableScheme'] = Type.Array(Type.String) >> { 'git' }, ['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 5, ['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100, ['Lua.diagnostics.libraryFiles'] = Type.String >> 'Opened' << { @@ -238,14 +236,10 @@ local template = { ['Lua.workspace.useGitIgnore'] = Type.Boolean >> true, ['Lua.workspace.maxPreload'] = Type.Integer >> 3000, ['Lua.workspace.preloadFileSize'] = Type.Integer >> 500, - ['Lua.workspace.library'] = Type.Hash(Type.String, Type.Boolean, ';'), + ['Lua.workspace.library'] = Type.Array(Type.String), ['Lua.workspace.checkThirdParty'] = Type.Boolean >> true, ['Lua.workspace.userThirdParty'] = Type.Array(Type.String), - ['Lua.workspace.supportScheme'] = Type.Hash(Type.String, Type.Boolean, ';') >> { - ['file'] = true, - ['untitled'] = true, - ['git'] = true, - }, + ['Lua.workspace.supportScheme'] = Type.Array(Type.String) >> { 'file', 'untitled', 'git' }, ['Lua.completion.enable'] = Type.Boolean >> true, ['Lua.completion.callSnippet'] = Type.String >> 'Disable' << { 'Disable', |