summaryrefslogtreecommitdiff
path: root/server/src/matcher/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r--server/src/matcher/hover.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index b997e8f8..af657225 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -40,7 +40,11 @@ local function buildLibArgs(lib, oo)
if arg.name then
strs[#strs+1] = ('%s: '):format(arg.name)
end
- strs[#strs+1] = arg.type or 'any'
+ if type(arg.type) == 'table' then
+ strs[#strs+1] = table.concat(arg.type, '/')
+ else
+ strs[#strs+1] = arg.type or 'any'
+ end
if arg.default then
strs[#strs+1] = ('(%q)'):format(arg.default)
end