summaryrefslogtreecommitdiff
path: root/server/src/core/hover_function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/hover_function.lua')
-rw-r--r--server/src/core/hover_function.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/src/core/hover_function.lua b/server/src/core/hover_function.lua
index d877a0d8..0eef37df 100644
--- a/server/src/core/hover_function.lua
+++ b/server/src/core/hover_function.lua
@@ -1,9 +1,12 @@
local function buildValueArgs(func, object, select)
local names = {}
local values = {}
+ if func:getObject() then
+ names[#names+1] = 'self'
+ end
if func.args then
- for i, arg in ipairs(func.args) do
- names[i] = arg:getName()
+ for _, arg in ipairs(func.args) do
+ names[#names+1] = arg:getName()
end
end
if func.argValues then