From 01d12ccf98d069a4afd42ab80b15ad5bd7c1280c Mon Sep 17 00:00:00 2001 From: Aaron Pham Date: Tue, 27 Aug 2024 13:54:16 -0400 Subject: [PATCH] fix(provider): key error (fixes #291) (#292) Signed-off-by: Aaron Pham --- lua/avante/providers/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/providers/init.lua b/lua/avante/providers/init.lua index edd5b43..bca369c 100644 --- a/lua/avante/providers/init.lua +++ b/lua/avante/providers/init.lua @@ -174,7 +174,7 @@ E.setup = function(opts) opts.provider.setup() -- check if var is a all caps string - if var == M.AVANTE_INTERNAL_KEY or var:match("^cmd:(.*)") or opts.providers["local"] == true then + if var == M.AVANTE_INTERNAL_KEY or var:match("^cmd:(.*)") or opts.provider["local"] == true then return end