chore(mapping): add support for toggling suggestion (#546)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-09-06 01:09:02 -04:00
committed by GitHub
parent 33c9ac216d
commit 7015dde5bf
7 changed files with 73 additions and 63 deletions

View File

@@ -146,7 +146,7 @@ return setmetatable(M, {
---@class AvailableApi: ApiCaller
---@field api? boolean
local has = module[k]
if type(has) ~= "table" or not has.api and not Config.silent_warning then
if type(has) ~= "table" or not has.api then
Utils.warn(k .. " is not a valid avante's API method", { once = true })
return
end