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:
@@ -2,6 +2,7 @@
|
||||
---we add a default var_accessor for this table to config values.
|
||||
|
||||
---@alias WebSearchEngineProviderResponseBodyFormatter fun(body: table): (string, string?)
|
||||
---@alias avante.InputProvider "native" | "dressing" | "snacks" | fun(input: avante.ui.Input): nil
|
||||
|
||||
local Utils = require("avante.utils")
|
||||
|
||||
@@ -556,6 +557,10 @@ M._defaults = {
|
||||
provider_opts = {},
|
||||
exclude_auto_select = {}, -- List of items to exclude from auto selection
|
||||
},
|
||||
input = {
|
||||
provider = "native",
|
||||
provider_opts = {},
|
||||
},
|
||||
suggestion = {
|
||||
debounce = 600,
|
||||
throttle = 600,
|
||||
|
||||
Reference in New Issue
Block a user