summaryrefslogtreecommitdiff
path: root/script/config/template.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-23 20:51:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-23 20:51:21 +0800
commit2738409e2d6d54253f48140533980f433d02efa3 (patch)
treed7467a42ca0d6106468df520068401bf1331aea1 /script/config/template.lua
parent70beb5893cc6d9d70fc85460b8aa3fdbd0a88a63 (diff)
downloadlua-language-server-2738409e2d6d54253f48140533980f433d02efa3.zip
update config
Diffstat (limited to 'script/config/template.lua')
-rw-r--r--script/config/template.lua27
1 files changed, 26 insertions, 1 deletions
diff --git a/script/config/template.lua b/script/config/template.lua
index 6078b5a6..3c55895d 100644
--- a/script/config/template.lua
+++ b/script/config/template.lua
@@ -244,9 +244,34 @@ local template = {
>> util.deepCopy(define.DiagnosticDefaultSeverity),
['Lua.diagnostics.neededFileStatus'] = Type.Hash(
Type.String << util.getTableKeys(define.DiagnosticDefaultNeededFileStatus, true),
- Type.String << { 'Any', 'Opened', 'None' }
+ Type.String << {
+ 'Any',
+ 'Opened',
+ 'None',
+ }
)
>> util.deepCopy(define.DiagnosticDefaultNeededFileStatus),
+ ['Lua.diagnostics.groupSeverity'] = Type.Hash(
+ Type.String << util.getTableKeys(define.DiagnosticDefaultGroupSeverity, true),
+ Type.String << {
+ 'Error',
+ 'Warning',
+ 'Information',
+ 'Hint',
+ 'Fallback',
+ }
+ )
+ >> util.deepCopy(define.DiagnosticDefaultGroupSeverity),
+ ['Lua.diagnostics.groupFileStatus'] = Type.Hash(
+ Type.String << util.getTableKeys(define.DiagnosticDefaultGroupFileStatus, true),
+ Type.String << {
+ 'Any',
+ 'Opened',
+ 'None',
+ 'Fallback',
+ }
+ )
+ >> util.deepCopy(define.DiagnosticDefaultGroupFileStatus),
['Lua.diagnostics.disableScheme'] = Type.Array(Type.String) >> { 'git' },
['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 3000,
['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100,