summaryrefslogtreecommitdiff
path: root/script/config
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-23 11:08:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-23 11:08:21 +0800
commit0d902298c0b4b26978e765665431d6d55d4b9b90 (patch)
tree3d611db4b23ad75fbd98cc99dec30a680ccfa7d6 /script/config
parent04b6327f39fc5354caa984b666644333ab52f9cc (diff)
downloadlua-language-server-0d902298c0b4b26978e765665431d6d55d4b9b90.zip
resolve #518 `Lua.completion.requireSeparator`
Diffstat (limited to 'script/config')
-rw-r--r--script/config/config.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/config/config.lua b/script/config/config.lua
index 91f0a00b..297d70ef 100644
--- a/script/config/config.lua
+++ b/script/config/config.lua
@@ -184,6 +184,7 @@ local Template = {
['Lua.completion.showWord'] = Type.String >> 'Enable',
['Lua.completion.autoRequire'] = Type.Boolean >> true,
['Lua.completion.showParams'] = Type.Boolean >> true,
+ ['Lua.completion.requireSeparator'] = Type.String >> '.',
['Lua.signatureHelp.enable'] = Type.Boolean >> true,
['Lua.hover.enable'] = Type.Boolean >> true,
['Lua.hover.viewString'] = Type.Boolean >> true,
@@ -324,6 +325,7 @@ function m.update(new)
expand(new)
end
+---@param callback fun(key: string, value: any, oldValue: any)
function m.watch(callback)
m.watchList[#m.watchList+1] = callback
end