mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
docs(lua): restore missing indexing for vim.bo and vim.wo (#28751)
This commit is contained in:
@ -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, ', ') .. ')'
|
||||
|
||||
|
Reference in New Issue
Block a user