feat: allow configurable file select provider (#944)

- add file_selector config
- add providers for fzf and telescope
This commit is contained in:
Aaron Lifton
2024-12-13 09:55:36 -05:00
committed by GitHub
parent 4d6f8e65fb
commit a1da07097d
2 changed files with 109 additions and 14 deletions

View File

@@ -234,6 +234,13 @@ M.defaults = {
ignore_patterns = { "%.git", "%.worktree", "__pycache__", "node_modules" }, -- ignore files matching these
negate_patterns = {}, -- negate ignore files matching these.
},
--- @class AvanteFileSelectorConfig
--- @field provider "native" | "fzf" | "telescope"
file_selector = {
provider = "native",
-- Options override for custom providers
provider_opts = {},
},
}
---@type avante.Config