feat: allow custom input provider, removing dressing.nvim (#2173)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: yetone <yetoneful@gmail.com>
This commit is contained in:
@@ -20,6 +20,15 @@ function M.switch_selector_provider(target_provider)
|
||||
})
|
||||
end
|
||||
|
||||
---@param target_provider avante.InputProvider
|
||||
function M.switch_input_provider(target_provider)
|
||||
require("avante.config").override({
|
||||
input = {
|
||||
provider = target_provider,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
---@param target avante.ProviderName
|
||||
function M.switch_provider(target) require("avante.providers").refresh(target) end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user