summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/hover.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index e34bec69..d2e7dd9c 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -406,7 +406,14 @@ return function (result, source, lsp, select)
end
local lib, fullKey, oo = findLib(result)
- local valueType = lib and lib.type or result.value.type or 'nil'
+ local valueType = lib and lib.type
+ if valueType then
+ if type(valueType) == 'table' then
+ valueType = valueType[1]
+ end
+ else
+ valueType = result.value.type or 'nil'
+ end
local name = fullKey or buildValueName(result, source)
if valueType == 'function' then
return getFunctionHover(name, result, source, lib, oo, select)