summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index 39cb8c5e..9166168b 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -232,7 +232,7 @@ local function bindClassOrType(source)
end
local function cleanInfers(infers)
- local version = config.get 'Lua.runtime.version'
+ local version = config.get(nil, 'Lua.runtime.version')
local enableInteger = version == 'Lua 5.3' or version == 'Lua 5.4'
infers['unknown'] = nil
if infers['number'] then
@@ -297,7 +297,7 @@ function m.viewInfers(infers)
return sa < sb
end
end)
- local limit = config.get 'Lua.hover.enumsLimit'
+ local limit = config.get(nil, 'Lua.hover.enumsLimit')
if limit < 0 then
limit = 0
end