From ea5706f52ff3efde8271c8ac3b65c7ddb7e522f3 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 15 Jan 2025 04:40:35 -0600 Subject: [PATCH] fix(get_provider): fix nil access table for vendors (#1074) If calling method without setup, we need to instantiate the vendors table so the method can properly extend the providers table into vendors. --- lua/avante/config.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/avante/config.lua b/lua/avante/config.lua index ec27dca..5418eb7 100644 --- a/lua/avante/config.lua +++ b/lua/avante/config.lua @@ -263,6 +263,9 @@ M.diff = {} ---@type Provider[] M.providers = {} +---@type AvanteProvider[] +M.vendors = {} + ---@param opts? avante.Config function M.setup(opts) vim.validate({ opts = { opts, "table", true } })