summaryrefslogtreecommitdiff
path: root/script/core/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/init.lua')
-rw-r--r--script/core/hover/init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua
index 5a65cbce..61f09455 100644
--- a/script/core/hover/init.lua
+++ b/script/core/hover/init.lua
@@ -60,8 +60,12 @@ local function getHover(source)
if guide.isOOP(def) then
oop = true
end
- if def.type == 'function'
- or def.type == 'doc.type.function' then
+ if def.type == 'function'
+ and not vm.isVarargFunctionWithOverloads(def) then
+ hasFunc = true
+ addHover(def, true, oop)
+ end
+ if def.type == 'doc.type.function' then
hasFunc = true
addHover(def, true, oop)
end