diff options
author | notomo <18519692+notomo@users.noreply.github.com> | 2025-01-08 21:37:29 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 04:37:29 -0800 |
commit | 5b9518b43663f9e77e5f041006df921350bf5061 (patch) | |
tree | 45922656f01372ba54fbba08c63a951380f29a7d /runtime/lua/vim/_meta/api_keysets.lua | |
parent | 561580aba5307cbd4d4a6c00cb39048831109bc7 (diff) | |
download | rneovim-5b9518b43663f9e77e5f041006df921350bf5061.tar.gz rneovim-5b9518b43663f9e77e5f041006df921350bf5061.tar.bz2 rneovim-5b9518b43663f9e77e5f041006df921350bf5061.zip |
fix(api): nvim_set_decoration_provider callback return type #31912
Problem: incorrect return type doc causes luals `Annotations specify that at most 0 return value(s) are required, found 1 returned here instead.` diagnosis
Solution: correct return type doc
Diffstat (limited to 'runtime/lua/vim/_meta/api_keysets.lua')
-rw-r--r-- | runtime/lua/vim/_meta/api_keysets.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/api_keysets.lua b/runtime/lua/vim/_meta/api_keysets.lua index e11dddb2d3..c08ab0663b 100644 --- a/runtime/lua/vim/_meta/api_keysets.lua +++ b/runtime/lua/vim/_meta/api_keysets.lua @@ -227,10 +227,10 @@ error('Cannot require a meta file') --- @field do_source? boolean --- @class vim.api.keyset.set_decoration_provider ---- @field on_start? fun(_: "start", tick: integer) +--- @field on_start? fun(_: "start", tick: integer): boolean? --- @field on_buf? fun(_: "buf", bufnr: integer, tick: integer) ---- @field on_win? fun(_: "win", winid: integer, bufnr: integer, toprow: integer, botrow: integer) ---- @field on_line? fun(_: "line", winid: integer, bufnr: integer, row: integer) +--- @field on_win? fun(_: "win", winid: integer, bufnr: integer, toprow: integer, botrow: integer): boolean? +--- @field on_line? fun(_: "line", winid: integer, bufnr: integer, row: integer): boolean? --- @field on_end? fun(_: "end", tick: integer) --- @field _on_hl_def? fun(_: "hl_def") --- @field _on_spell_nav? fun(_: "spell_nav") |