fix: more readable value name (#1521)

This commit is contained in:
yetone
2025-03-07 20:27:11 +08:00
committed by GitHub
parent 6c7c5464ca
commit 4d983532a1
6 changed files with 39 additions and 35 deletions

View File

@@ -113,7 +113,7 @@ cmd("SwitchProvider", function(opts) require("avante.api").switch_provider(vim.t
complete = function(_, line, _)
local prefix = line:match("AvanteSwitchProvider%s*(.*)$") or ""
---@param key string
return vim.tbl_filter(function(key) return key:find(prefix, 1, true) == 1 end, Config.providers)
return vim.tbl_filter(function(key) return key:find(prefix, 1, true) == 1 end, Config.provider_names)
end,
})
cmd(