mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
fix(types): nvim_get_win_config return type #35639
This commit is contained in:
@@ -24,6 +24,10 @@ local TEXT_WIDTH = 78
|
||||
--- @field remote boolean
|
||||
--- @field since integer
|
||||
|
||||
local LUA_API_RETURN_OVERRIDES = {
|
||||
nvim_win_get_config = 'vim.api.keyset.win_config_ret',
|
||||
}
|
||||
|
||||
local LUA_META_HEADER = {
|
||||
'--- @meta _',
|
||||
'-- THIS FILE IS GENERATED',
|
||||
@@ -306,7 +310,8 @@ local function render_api_meta(_f, fun, write)
|
||||
|
||||
if fun.returns ~= 'nil' then
|
||||
local ret_desc = fun.returns_desc and ' # ' .. fun.returns_desc or ''
|
||||
write(util.prefix_lines('--- ', '@return ' .. fun.returns .. ret_desc))
|
||||
local ret = LUA_API_RETURN_OVERRIDES[fun.name] or fun.returns
|
||||
write(util.prefix_lines('--- ', '@return ' .. ret .. ret_desc))
|
||||
end
|
||||
local param_str = table.concat(param_names, ', ')
|
||||
|
||||
|
Reference in New Issue
Block a user