aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotomo <18519692+notomo@users.noreply.github.com>2025-01-08 21:37:29 +0900
committerGitHub <noreply@github.com>2025-01-08 04:37:29 -0800
commit5b9518b43663f9e77e5f041006df921350bf5061 (patch)
tree45922656f01372ba54fbba08c63a951380f29a7d /src
parent561580aba5307cbd4d4a6c00cb39048831109bc7 (diff)
downloadrneovim-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 'src')
-rw-r--r--src/nvim/api/keysets_defs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/api/keysets_defs.h b/src/nvim/api/keysets_defs.h
index 48f5f7246c..40e89d230d 100644
--- a/src/nvim/api/keysets_defs.h
+++ b/src/nvim/api/keysets_defs.h
@@ -13,10 +13,11 @@ typedef struct {
typedef struct {
OptionalKeys is_set__set_decoration_provider_;
- LuaRefOf(("start" _, Integer tick)) on_start;
+ LuaRefOf(("start" _, Integer tick), *Boolean) on_start;
LuaRefOf(("buf" _, Integer bufnr, Integer tick)) on_buf;
- LuaRefOf(("win" _, Integer winid, Integer bufnr, Integer toprow, Integer botrow)) on_win;
- LuaRefOf(("line" _, Integer winid, Integer bufnr, Integer row)) on_line;
+ LuaRefOf(("win" _, Integer winid, Integer bufnr, Integer toprow, Integer botrow),
+ *Boolean) on_win;
+ LuaRefOf(("line" _, Integer winid, Integer bufnr, Integer row), *Boolean) on_line;
LuaRefOf(("end" _, Integer tick)) on_end;
LuaRefOf(("hl_def" _)) _on_hl_def;
LuaRefOf(("spell_nav" _)) _on_spell_nav;