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
This commit is contained in:
notomo
2025-01-08 21:37:29 +09:00
committed by GitHub
parent 561580aba5
commit 5b9518b436
2 changed files with 7 additions and 6 deletions

View File

@@ -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;