34 Commits

Author SHA1 Message Date
XuJiawei
42028811e4 refine: replace vim.fn.system with vim.system (#2863) 2025-12-13 18:58:10 +08:00
Canmi
0a0a0a3958 fix: visual spacing glitch between badges. (#2783) 2025-10-22 02:44:41 +08:00
Dmitry Torokhov
2f9daf2bc6 feat(ollama): provide a helper to enable ollama when service is available
Ollama is disabled by default, as it normally does not require API keys
to be defined. Users are supposed to override is_env_set() method in
their configs to enable Ollama.

Provide check_endpoint_alive() helper in Ollama provider module that can
be used directly in place of is_env_set() and checks whether the server
replies to "get list of models" query:

...
  ollama = {
    is_env_set = require("avante.providers.ollama").check_endpoint_alive,
  },
...
2025-10-16 22:09:54 -07:00
Carlos Gomes
cecd0de6fc feat: Allow inline buttons and popup confirmation for both ACP and normal Providers (#2760)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-10-15 18:08:51 +08:00
Copilot
60cb63cdd2 feat: Add option to disable auto-adding current file when opening new chat (#2764)
Co-authored-by: yetone <1206493+yetone@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-10-13 11:34:44 +08:00
Dmitry Torokhov
fed6902c9a feat!(selection): do not display hint immediately
Selection hint that is displayed immediately upon entering visual mode
([<leader>aa: ask, <leader>ae: edit]) gets old pretty quickly. Add a
config option to control when the hint is displayed:

  selection = {
    enabled = true,
    hint_display = "delayed",
  },

The "hint_display" option recognizes the following values:

- "immediate" results in the hint being shown immediately after entering
  visual mode. This is the old behavior.
- "delayed" causes the hint be displayed only if the cursor has not been
  moved for vim.o.updatetime milliseconds. This is the new default.
- "none" suppresses showing the hint completely.

Unfortunately "CursorHold" event is not emitted in visual mode so we
have to emulate it using Utils.debounce().

This is a breaking change because selection behavior was controller by
"hints" config entry which makes little sense, so the config section and
associated commands were renamed to "selection".

Additionally the "hints"/"selection" was mapped to "<leader>ah", but the
very same key combination was used to select from old Avante chat
histories, which overrode the toggle. New selection toggle keymap is
"<leader>aC".
2025-08-16 14:45:52 +08:00
yetone
1830917ceb fix(docs): incorrect installation instructions (#2555) 2025-07-31 14:26:39 +08:00
doodleEsc
faa3945428 feat: implement user-defined text shortcuts (#2512)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-07-23 11:54:59 +08:00
ras0q
7ed3a0e761 doc: the build opt must return a string value
The `build` opt must be fun(LazyPlugin) or string or false or a list of
build commands, not fun():string

Ref: https://lazy.folke.io/spec
2025-07-21 12:10:40 -07:00
yetone
ae06698c30 feat: add moonshot provider 2025-07-16 19:04:46 +08:00
yetone
18ea95d965 fix: refine docs 2025-07-16 18:38:55 +08:00
yetone
4892b7cde5 chores: update README (#2435) 2025-07-11 13:58:51 +08:00
yetone
1748b9120a chores: remove aihubmix (#2430) 2025-07-10 11:24:01 +08:00
yetone
286b5ba7ae chores: remove searchapi (#2429) 2025-07-10 10:52:49 +08:00
guanghechen
7aec52ff3e improve: support to customize the spinners (#2397) 2025-07-02 18:54:41 +08:00
doodleEsc
4329ed79f4 feat: enable override prompt templates directory (#2387) 2025-07-02 14:43:17 +08:00
guanghechen
30604304ba improve: support to customize the avanterules directories for project/global (#2392) 2025-07-02 12:17:13 +08:00
Peter Cardenas
9a04edba4a chore: remove all references to nvim-treesitter (#2327) 2025-06-25 17:42:38 +08:00
Mahmoud Abduljawad
53c764a258 feat: scoped API key support with AVANTE_ prefix (#2285)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-22 14:36:51 +08:00
yetone
af2eaf797c chores: udpate readme (#2264) 2025-06-19 14:33:50 +08:00
Avinash Thakur
cf87220dff docs: fix doc types. Add lua type to opts in readme (#2200)
* docs: fix doc types. Add lua type to `opts` in readme

* [pre-commit.ci lite] apply automatic fixes

* chore: fix type error in sidebar.lua

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-17 16:09:12 +08:00
yetone
fcf457ed7f fix: refine tools (#2229) 2025-06-16 01:27:39 +08:00
doodleEsc
2dd4c04088 feat: Enhanced Model Provider Support and Configuration Flexibility For Rag Service (#2056)
Co-authored-by: doodleEsc <cokie@foxmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-06-06 23:07:07 +08:00
Avinash Thakur
ec0f4f9ae0 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>
2025-06-06 23:04:35 +08:00
Avinash Thakur
1eaf2d50de fix: mcphub url in readme (#2135) 2025-06-04 03:23:58 +08:00
yetone
aa274ee927 fix(docs): remove legacy provider config (#2122) 2025-06-03 12:00:20 +08:00
yetone
e9ab2ca2fd refactor: providers config (#2117) 2025-06-03 04:01:01 +08:00
doodleEsc
0b78b58760 feat(file_selector): add intergration with nvim-tree.lua (#1987)
Co-authored-by: doodleEsc <cokie@foxmail.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-05-06 00:06:41 +08:00
yetone
756d1f1e24 feat: universal selector (#1877) 2025-04-15 16:40:47 +08:00
Jorge Valdez
1fc57ab1ae feat: add support for searxng (#1814)
* Add support for searxng

* body.results not body.web

* type annotation

* update docs
2025-04-09 14:35:42 +08:00
doodleEsc
1c36cfc812 fix: enhance web search functionality with proxy support (#1823)
* fix: enhance web search functionality with proxy support

- Remove unnecessary blank line in README.md
- Add missing closing details tag in both README.md and README_zh.md
- Add proxy support to the web search engine configuration in config.lua
- Ensure the web search function uses the proxy setting when available in init.lua
- Fix a potential nil access in the response body format check in config.lua

Signed-off-by: 范立洲 <fanlizhou@yunqilaohe.com>

* [pre-commit.ci lite] apply automatic fixes

---------

Signed-off-by: 范立洲 <fanlizhou@yunqilaohe.com>
Co-authored-by: 范立洲 <fanlizhou@yunqilaohe.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2025-04-07 15:05:22 +08:00
yetone
f83378a67e feat: add pre-commit ci (#1824) 2025-04-07 14:55:21 +08:00
yetone
7dc5560909 chores: update readme (#1786) 2025-03-31 23:28:29 +08:00
yetone
46073c0efd feat: aihubmix (#1780)
* feat: aihubmix

* feat: add chinese readme
2025-03-31 18:58:41 +08:00