aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2025-09-09 20:53:31 +0200
committerGitHub <noreply@github.com>2025-09-09 20:53:31 +0200
commitb95aedeae4e57f3900410678f47e6ddd69a5357d (patch)
tree758725fc1f91ff683ac68f67bce6b23ab4c17180 /runtime/lua/vim/_meta/api.lua
parentd15936f6ef9b6d225b92d93369efaf2b1bb37474 (diff)
parent5119c03be7a9d440ae1ab027c3879d2ad7e71bba (diff)
downloadrneovim-b95aedeae4e57f3900410678f47e6ddd69a5357d.tar.gz
rneovim-b95aedeae4e57f3900410678f47e6ddd69a5357d.tar.bz2
rneovim-b95aedeae4e57f3900410678f47e6ddd69a5357d.zip
Merge pull request #35536 from bfredl/skipahead
perf(highlight): allow decoration providers to skip ranges without data fixes #35644
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
-rw-r--r--runtime/lua/vim/_meta/api.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua
index 61e4a28704..abda4dead0 100644
--- a/runtime/lua/vim/_meta/api.lua
+++ b/runtime/lua/vim/_meta/api.lua
@@ -2175,6 +2175,13 @@ function vim.api.nvim_set_current_win(window) end
--- ```
--- ["range", winid, bufnr, begin_row, begin_col, end_row, end_col]
--- ```
+---
+--- In addition to returning a boolean, it is also allowed to
+--- return a `skip_row, skip_col` pair of integers. This implies
+--- that this function does not need to be called until a range
+--- which continues beyond the skipped position. A single integer
+--- return value `skip_row` is short for `skip_row, 0`
+---
--- - on_end: called at the end of a redraw cycle
--- ```
--- ["end", tick]