aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-15 19:39:35 +0800
committerGitHub <noreply@github.com>2024-05-15 19:39:35 +0800
commitffb4b50e74657b3b15199972371e0cff84f9cd4a (patch)
tree6e7d3d140faefc69912d0939981963ca8ee38a11 /scripts
parent61a0aa6c51fb689d196eae37de7d5a75b330efff (diff)
downloadrneovim-ffb4b50e74657b3b15199972371e0cff84f9cd4a.tar.gz
rneovim-ffb4b50e74657b3b15199972371e0cff84f9cd4a.tar.bz2
rneovim-ffb4b50e74657b3b15199972371e0cff84f9cd4a.zip
docs(lua): restore missing indexing for vim.bo and vim.wo (#28751)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen_vimdoc.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua
index 085b1f5bea..6d0fc46145 100755
--- a/scripts/gen_vimdoc.lua
+++ b/scripts/gen_vimdoc.lua
@@ -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, ', ') .. ')'