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

This commit is contained in:
luukvbaal 2024-12-19 16:04:33 +01:00 committed by GitHub
parent 31d6885deb
commit a5a4149e97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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]
/// ```