fix: types (#210)

This commit is contained in:
yetone 2024-08-25 17:12:33 +08:00 committed by GitHub
parent 3f906e5289
commit 28fd18fd0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,11 +31,11 @@ local Sidebar = {}
---@field augroup integer ---@field augroup integer
---@field code avante.CodeState ---@field code avante.CodeState
---@field winids table<string, integer> this table stores the winids of the sidebar components (result_container, result, selected_code_container, selected_code, input_container, input), even though they are destroyed. ---@field winids table<string, integer> this table stores the winids of the sidebar components (result_container, result, selected_code_container, selected_code, input_container, input), even though they are destroyed.
---@field result_container AvanteComp | nil ---@field result_container NuiSplit | nil
---@field result FloatingWindow | nil ---@field result FloatingWindow | nil
---@field selected_code_container AvanteComp | nil ---@field selected_code_container NuiSplit | nil
---@field selected_code FloatingWindow | nil ---@field selected_code FloatingWindow | nil
---@field input_container AvanteComp | nil ---@field input_container NuiSplit | nil
---@field input FloatingWindow | nil ---@field input FloatingWindow | nil
---@param id integer the tabpage id retrieved from api.nvim_get_current_tabpage() ---@param id integer the tabpage id retrieved from api.nvim_get_current_tabpage()