docs: various clarifications (#23999)

Close #18907
Close #20314
Close #23749
This commit is contained in:
zeertzjq
2023-06-12 20:08:08 +08:00
committed by GitHub
parent 758c418d12
commit 0eb02ea90a
7 changed files with 18 additions and 33 deletions

View File

@@ -534,9 +534,9 @@ function vim.region(bufnr, pos1, pos2, regtype, inclusive)
return region
end
--- Defers calling `fn` until `timeout` ms passes.
--- Defers calling {fn} until {timeout} ms passes.
---
--- Use to do a one-shot timer that calls `fn`
--- Use to do a one-shot timer that calls {fn}
--- Note: The {fn} is |vim.schedule_wrap()|ped automatically, so API functions are
--- safe to call.
---@param fn function Callback to call once `timeout` expires