diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-08-08 10:15:28 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-08-08 10:15:28 +0530 |
| commit | 5e3f233c239de63e8ac3549a32b0e6343b32fc7a (patch) | |
| tree | b0e0eedf47632c5765bdd554a5fdd7a11e6838a5 /lua | |
| parent | 4ecfe688a016232656b383f82da4d6e2ba75a328 (diff) | |
| download | null-browser-5e3f233c239de63e8ac3549a32b0e6343b32fc7a.tar.gz null-browser-5e3f233c239de63e8ac3549a32b0e6343b32fc7a.zip | |
Add decorations.*.set_size api
Diffstat (limited to '')
| -rw-r--r-- | lua/null-browser/api.lua | 2 |
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 |
