summaryrefslogtreecommitdiff
path: root/server/src/core/hover/lib_function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/hover/lib_function.lua')
-rw-r--r--server/src/core/hover/lib_function.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/core/hover/lib_function.lua b/server/src/core/hover/lib_function.lua
index 09b1e47b..3c693961 100644
--- a/server/src/core/hover/lib_function.lua
+++ b/server/src/core/hover/lib_function.lua
@@ -208,13 +208,15 @@ return function (name, lib, object, select)
local tip = lib.description
local doc = buildDoc(lib)
local headLen = #('function %s('):format(name)
- local title = ('function %s(%s)%s'):format(name, argStr, returns)
+ local title = ('function %s(%s)'):format(name, argStr)
if argLabel then
argLabel[1] = argLabel[1] + headLen
argLabel[2] = argLabel[2] + headLen
end
return {
- label = title,
+ label = title .. returns,
+ title = title,
+ returns = returns,
description = tip,
enum = enum,
rawEnum = rawEnum,