aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/null-browser/api.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/null-browser/api.lua b/lua/null-browser/api.lua
index 6d6f974..670de3a 100644
--- a/lua/null-browser/api.lua
+++ b/lua/null-browser/api.lua
@@ -324,6 +324,7 @@ function web.view.scroll_to_bottom(view_id) return __internals.view_scroll_to_bo
--- @field set_enabled fun(enabled: boolean, opts?: DecorationOpts): nil
--- @field is_enabled fun(opts?: DecorationOpts): boolean
--- @field view fun(opts?: DecorationOpts): number|nil
+--- @field set_size fun(size: number, opts?: DecorationOpts): nil
--- @class DecorationType: number
@@ -345,6 +346,7 @@ local function create_decoration_api(type)
view = function(opts)
return __internals.decorations_get_view(type, (opts or {}).win)
end,
+ set_size = function(size, opts) __internals.decorations_set_size(type, size, (opts or {}).win) end,
}
end