fix(provider): shouldn't ask user to input value when the env variable already been set (#1889)

This commit is contained in:
guanghechen
2025-04-17 17:20:50 +08:00
committed by GitHub
parent cff8cbf9c5
commit eb1cd44731

View File

@@ -55,6 +55,11 @@ function E.setup(opts)
return
end
if vim.env[var] ~= nil then
vim.g.avante_login = true
return
end
-- check if var is a all caps string
if type(var) == "table" or var:match("^cmd:(.*)") then return end