2024-08-17 15:14:30 +08:00
|
|
|
---@meta
|
|
|
|
|
2024-08-22 17:01:45 +08:00
|
|
|
---@class AvanteComp
|
2024-08-21 21:28:17 +08:00
|
|
|
---@field winid integer | nil
|
|
|
|
---@field bufnr integer | nil
|
2024-08-22 17:01:45 +08:00
|
|
|
local AvanteComp = {}
|
2024-08-21 21:28:17 +08:00
|
|
|
|
|
|
|
---@return nil
|
2024-08-22 17:01:45 +08:00
|
|
|
function AvanteComp:mount() end
|
2024-08-21 21:28:17 +08:00
|
|
|
|
|
|
|
---@return nil
|
2024-08-22 17:01:45 +08:00
|
|
|
function AvanteComp:unmount() end
|
2024-08-21 21:28:17 +08:00
|
|
|
|
|
|
|
---@param event string | string[]
|
|
|
|
---@param handler string | function
|
|
|
|
---@param options? table<"'once'" | "'nested'", boolean>
|
|
|
|
---@return nil
|
2024-08-22 17:01:45 +08:00
|
|
|
function AvanteComp:on(event, handler, options) end
|
2024-08-21 21:28:17 +08:00
|
|
|
|
|
|
|
-- set keymap for this split
|
|
|
|
---@param mode string check `:h :map-modes`
|
|
|
|
---@param key string|string[] key for the mapping
|
|
|
|
---@param handler string | fun(): nil handler for the mapping
|
|
|
|
---@param opts? table<"'expr'"|"'noremap'"|"'nowait'"|"'remap'"|"'script'"|"'silent'"|"'unique'", boolean>
|
|
|
|
---@return nil
|
2024-08-22 17:01:45 +08:00
|
|
|
function AvanteComp:map(mode, key, handler, opts, ___force___) end
|