diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/matcher/hover.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index 0db15bf8..497bc528 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -79,7 +79,11 @@ local function buildLibReturns(lib) if rtn.name then strs[#strs+1] = ('%s: '):format(rtn.name) end - strs[#strs+1] = rtn.type or 'any' + if type(rtn.type) == 'table' then + strs[#strs+1] = table.concat(rtn.type, '/') + else + strs[#strs+1] = rtn.type or 'any' + end if rtn.default then strs[#strs+1] = ('(%q)'):format(rtn.default) end |