diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 15:22:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 15:22:29 +0800 |
commit | 6515fb49d7084c1547e3ccce7c06917e32e2b2da (patch) | |
tree | 95f2c7307410b2502ac563d724c141525146116f | |
parent | b30fb29123c55052268e33d585c1b3bfbb91e5ce (diff) | |
download | lua-language-server-6515fb49d7084c1547e3ccce7c06917e32e2b2da.zip |
dont show `self`
-rw-r--r-- | script/core/completion.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 7db106d6..59bba005 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1700,12 +1700,15 @@ local function buildLuaDocOfFunction(func) end end for n, arg in ipairs(args) do - index = index + 1 - buf[#buf+1] = ('---@param %s ${%d:%s}'):format( - func.args[n][1], - index, - arg - ) + local funcArg = func.args[n] + if funcArg[1] and not funcArg.dummy then + index = index + 1 + buf[#buf+1] = ('---@param %s ${%d:%s}'):format( + funcArg[1], + index, + arg + ) + end end for _, rtn in ipairs(returns) do index = index + 1 |