From f2580891997bd95e4f81d9b81cabdc792f995a11 Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Tue, 27 Aug 2024 04:46:23 -0400 Subject: [PATCH] fix(env): set api via input popup (fixes #274) (#276) Signed-off-by: Aaron Pham --- lua/avante/providers/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/avante/providers/init.lua b/lua/avante/providers/init.lua index 65d4127..47d2488 100644 --- a/lua/avante/providers/init.lua +++ b/lua/avante/providers/init.lua @@ -180,6 +180,7 @@ E.setup = function(opts) local function on_confirm(value) if value then vim.fn.setenv(var, value) + vim.g.avante_login = true else if not opts.provider.has() then Utils.warn("Failed to set " .. var .. ". Avante won't work as expected", { once = true, title = "Avante" })