mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
docs(annotations): added ---@generic
support
This commit is contained in:

committed by
Lewis Russell

parent
65b1733405
commit
f9dd682621
@@ -496,6 +496,10 @@ local function render_eval_meta(f, fun, write)
|
||||
end
|
||||
end
|
||||
|
||||
for _, text in ipairs(vim.fn.reverse(fun.generics or {})) do
|
||||
write(fmt('--- @generic %s', text))
|
||||
end
|
||||
|
||||
local req_args = type(fun.args) == 'table' and fun.args[1] or fun.args or 0
|
||||
|
||||
for i, param in ipairs(params) do
|
||||
|
Reference in New Issue
Block a user