summaryrefslogtreecommitdiff
path: root/server/src/core/hover_name.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/hover_name.lua')
-rw-r--r--server/src/core/hover_name.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/hover_name.lua b/server/src/core/hover_name.lua
index affc33f3..5e358820 100644
--- a/server/src/core/hover_name.lua
+++ b/server/src/core/hover_name.lua
@@ -16,7 +16,7 @@ return function (result, source)
key = ('%q'):format(declarat[1])
elseif declarat.type == 'number' or declarat.type == 'boolean' then
key = tostring(declarat[1])
- elseif func.type == 'function' then
+ elseif func:getType() == 'function' then
key = ''
elseif type(result.key) == 'string' then
key = result.key