summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/core/hover/function.lua2
-rw-r--r--server/src/emmy/alias.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/server/src/core/hover/function.lua b/server/src/core/hover/function.lua
index 5976806c..b3bbb428 100644
--- a/server/src/core/hover/function.lua
+++ b/server/src/core/hover/function.lua
@@ -132,7 +132,7 @@ local function buildEnum(func)
param:eachEnum(function (enum, option)
if first then
first = false
- strs[#strs+1] = ('\n%s:%s'):format(param:getName(), param:getType())
+ strs[#strs+1] = ('\n%s: %s'):format(param:getName(), param:getType())
end
if option and option.default then
strs[#strs+1] = ('\n |>%s'):format(enum)
diff --git a/server/src/emmy/alias.lua b/server/src/emmy/alias.lua
index be47cb4f..7e015542 100644
--- a/server/src/emmy/alias.lua
+++ b/server/src/emmy/alias.lua
@@ -21,13 +21,13 @@ function mt:bindType(type)
end
end
-function mt:addEnum(enum)
- self._enum[#self._enum+1] = enum
+function mt:addEnum(enum, option)
+ self._enum[#self._enum+1] = {enum, option}
end
function mt:eachEnum(callback)
for _, enum in ipairs(self._enum) do
- callback(enum)
+ callback(enum[1], enum[2])
end
end