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.
This commit is contained in:
parent
0a837a4583
commit
ea5706f52f
@ -263,6 +263,9 @@ M.diff = {}
|
|||||||
---@type Provider[]
|
---@type Provider[]
|
||||||
M.providers = {}
|
M.providers = {}
|
||||||
|
|
||||||
|
---@type AvanteProvider[]
|
||||||
|
M.vendors = {}
|
||||||
|
|
||||||
---@param opts? avante.Config
|
---@param opts? avante.Config
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
vim.validate({ opts = { opts, "table", true } })
|
vim.validate({ opts = { opts, "table", true } })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user