diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/null-browser/api.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/null-browser/api.lua b/lua/null-browser/api.lua index f12d127..a414522 100644 --- a/lua/null-browser/api.lua +++ b/lua/null-browser/api.lua @@ -289,6 +289,7 @@ function web.view.scroll_to_bottom(view_id) return __internals.view_scroll_to_bo --- @field disable fun(opts?: DecorationOpts): nil --- @field set_enabled fun(enabled: boolean, opts?: DecorationOpts): nil --- @field is_enabled fun(opts?: DecorationOpts): boolean +--- @field view fun(opts?: DecorationOpts): number|nil --- --- @alias DecorationType number --- @@ -304,6 +305,9 @@ local function create_decoration_api(type) is_enabled = function(opts) return __internals.decorations_get_enabled(type, (opts or {}).win) end, + view = function(opts) + return __internals.decorations_get_view(type, (opts or {}).win) + end, } end |
