From bcec0fa1944f435a714b15147d7bee3f19f35f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Catellani?= <syx0ww@gmail.com> Date: Sun, 15 Sep 2024 11:56:18 -0300 Subject: [PATCH] fix: initialize auto suggestions providers (closes #571) (#576) --- lua/avante/providers/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/avante/providers/init.lua b/lua/avante/providers/init.lua index 9cb8874..761c667 100644 --- a/lua/avante/providers/init.lua +++ b/lua/avante/providers/init.lua @@ -302,7 +302,12 @@ M.setup = function() ---@type AvanteProviderFunctor local provider = M[Config.provider] + local auto_suggestions_provider = M[Config.auto_suggestions_provider] E.setup({ provider = provider }) + + if auto_suggestions_provider and auto_suggestions_provider ~= provider then + E.setup({ provider = auto_suggestions_provider }) + end end ---@param provider Provider