aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta
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
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')
-rw-r--r--runtime/lua/vim/_meta/api.lua7
-rw-r--r--runtime/lua/vim/_meta/api_keysets.lua1
2 files changed, 8 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]
diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua
index a3c6b52409..a09b0dbf65 100644
--- a/runtime/lua/vim/_meta/api_keysets.lua
+++ b/runtime/lua/vim/_meta/api_keysets.lua
@@ -423,6 +423,7 @@ error('Cannot require a meta file')
--- @field undo_restore? boolean
--- @field url? string
--- @field scoped? boolean
+--- @field _subpriority? integer
--- @class vim.api.keyset.user_command
--- @field addr? any