summaryrefslogtreecommitdiff
path: root/script/config
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2022-08-17 20:04:37 +0800
committerCppCXY <812125110@qq.com>2022-08-17 20:04:37 +0800
commitc3d602a11de758f14e46a2b49539e5fe9c76dd8c (patch)
tree0660df12b41dafd8bd28d2de949caeb46483e771 /script/config
parente5ebce3d90da8cb59eee373fa119ad6eb8472546 (diff)
downloadlua-language-server-c3d602a11de758f14e46a2b49539e5fe9c76dd8c.zip
提交typeformat选项相关
Diffstat (limited to 'script/config')
-rw-r--r--script/config/template.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/config/template.lua b/script/config/template.lua
index 60f3dbca..a08b9e53 100644
--- a/script/config/template.lua
+++ b/script/config/template.lua
@@ -181,6 +181,7 @@ end, function (self, ...)
self.subs = { ... }
end)
+---@format disable-next
local template = {
['Lua.runtime.version'] = Type.String >> 'Lua 5.4' << {
'Lua 5.1',
@@ -371,6 +372,8 @@ local template = {
['Lua.format.enable'] = Type.Boolean >> true,
['Lua.format.defaultConfig'] = Type.Hash(Type.String, Type.String)
>> {},
+ ['Lua.typeFormat.config'] = Type.Hash(Type.String, Type.String)
+ >> {},
['Lua.spell.dict'] = Type.Array(Type.String),
['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil) >> nil,
['Lua.misc.parameters'] = Type.Array(Type.String),