refactor(cmp): Extract get_chat_mentions for third-party cmp source usage (#2027)

This commit is contained in:
aniaan
2025-05-12 20:19:42 +08:00
committed by GitHub
parent 786d95464c
commit aae4cc4014
4 changed files with 35 additions and 34 deletions

View File

@@ -452,3 +452,7 @@ vim.g.avante_login = vim.g.avante_login
---@field details string
---@field shorthelp? string
---@field callback? AvanteSlashCommandCallback
---@alias AvanteMentions "codebase" | "diagnostics" | "file" | "quickfix" | "buffers"
---@alias AvanteMentionCallback fun(args: string, cb?: fun(args: string): nil): nil
---@alias AvanteMention {description: string, command: AvanteMentions, details: string, shorthelp?: string, callback?: AvanteMentionCallback}