docs(api): specify when decor provider on_buf callback is called

This commit is contained in:
Luuk van Baal 2024-12-19 00:35:43 +01:00
parent 160cbd0ef4
commit 5a5576c1c2
3 changed files with 6 additions and 6 deletions

View File

@ -2847,8 +2847,8 @@ nvim_set_decoration_provider({ns_id}, {opts})
• on_start: called first on each screen redraw >
["start", tick]
<
• on_buf: called for each buffer being redrawn (before window
callbacks) >
• on_buf: called for each buffer being redrawn (once per
edit, before window callbacks) >
["buf", bufnr, tick]
<
• on_win: called when starting to redraw a specific window. >

View File

@ -2134,8 +2134,8 @@ function vim.api.nvim_set_current_win(window) end
--- ```
--- ["start", tick]
--- ```
--- - on_buf: called for each buffer being redrawn (before
--- window callbacks)
--- - on_buf: called for each buffer being redrawn (once per edit,
--- before window callbacks)
--- ```
--- ["buf", bufnr, tick]
--- ```

View File

@ -1012,8 +1012,8 @@ void nvim_buf_clear_namespace(Buffer buffer, Integer ns_id, Integer line_start,
/// ```
/// ["start", tick]
/// ```
/// - on_buf: called for each buffer being redrawn (before
/// window callbacks)
/// - on_buf: called for each buffer being redrawn (once per edit,
/// before window callbacks)
/// ```
/// ["buf", bufnr, tick]
/// ```