docs(lua): restore missing indexing for vim.bo and vim.wo (#28751)

This commit is contained in:
zeertzjq
2024-05-15 19:39:35 +08:00
committed by GitHub
parent 61a0aa6c51
commit ffb4b50e74
2 changed files with 8 additions and 2 deletions

View File

@ -614,6 +614,12 @@ local function render_fun_header(fun, cfg)
if fun.classvar then
nm = fmt('%s:%s', fun.classvar, nm)
end
if nm == 'vim.bo' then
nm = 'vim.bo[{bufnr}]'
end
if nm == 'vim.wo' then
nm = 'vim.wo[{winid}][{bufnr}]'
end
local proto = fun.table and nm or nm .. '(' .. table.concat(args, ', ') .. ')'