chore: remove unused functions and simplify with utils (#103)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-19 19:15:58 -04:00
committed by GitHub
parent 410824e357
commit 5f74c54e55
3 changed files with 18 additions and 44 deletions

View File

@@ -19,6 +19,7 @@ local AvanteRenderer = require("nui-components.renderer")
---@class NuiComponent
---@field winid integer | nil
---@field bufnr integer | nil
local AvanteComponent = require("nui-components.component")
---@param opts table<string, any>
@@ -28,6 +29,14 @@ function AvanteRenderer.create(opts) end
---@return NuiComponent[]
function AvanteRenderer:get_focusable_components() end
---@param mappings {mode: string[], key: string, handler: fun(): any}[]
---@return nil
function AvanteRenderer:add_mappings(mappings) end
---@param id string
---@return NuiComponent
function AvanteRenderer:get_component_by_id(id) end
---@param body fun():NuiComponent
function AvanteRenderer:render(body) end