682 Commits

Author SHA1 Message Date
guanghechen
6d116fac36
feat(file_selector): support customized file selector method () 2025-02-11 13:49:00 +08:00
synic
0bfbd39ebc
fix(sidebar): fix various focus errors ()
This fixes a bunch of errors I was getting when switching away from the
avante sidebar and then back. Sometimes the sidebar would lose track of
the various windows, and you'd get errors like this:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

Or this one:

```
|| stack traceback:
|| 	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2350: in function <...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2349>
|| Error detected while processing BufLeave Autocommands for "<buffer=294>":
|| Error executing lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:2398: attempt to index field 'selected_files_container' (a nil value)
```

This change does the following:

1. Proper order of cleanup in `reset()`
2. Proper cleanup in `create_selected_files_container()`
2025-02-11 13:42:23 +08:00
yetone
62c29b3d0c
fix: incorrect replace end tag () 2025-02-11 12:11:16 +08:00
Thomas Müller
3f8b6d07ba
feat(sidebar): add member function to check whether the sidebar is focused () 2025-02-11 11:36:38 +08:00
Thomas Müller
a6ae8ad4b7
fix(sidebar): reset cursor to beginning of prompt on submit ()
This fix is required for users with vim.o.virtualedit="all". Otherwise,
the cursor remains at the end of the prompt and has to be manually moved
back before entering the next prompt.
2025-02-11 11:36:19 +08:00
Thomas Müller
8d82abe043
feat: expose whether the llm is currently generating content () 2025-02-11 11:35:28 +08:00
Thomas Müller
63136fd92f
fix(suggestions): make history more faithful to future input ()
* fix(suggestions): make history more faithful to future input

* fix(suggestions): put cursor to the end of line in suggestion history
2025-02-11 02:08:58 +08:00
Oliver Lorton
cc46386130
fix: when dev icons absent ()
* Add helper function to check for dev icon availability

* Add function to display dev icon or nothing if icon plugins unavailable

* Fix existing use of icons

* Reformat with stylua
2025-02-11 01:43:01 +08:00
Omar Crespo
6e18616c16
fix: dual boost only in planning mode () 2025-02-11 01:40:49 +08:00
Amin Roosta
c07d396e30
feat(web_search_engine): adds google as a provider () 2025-02-10 13:21:55 +08:00
yetone
59fdbd72a4
fix: get abs path () 2025-02-10 02:08:58 +08:00
yetone
26e40e5483
fix: apply non-existent file () 2025-02-09 01:56:59 +08:00
Daniel Tabuenca
987275c64a
feat: bedrock temporary credentials support () 2025-02-09 01:40:20 +08:00
yetone
4ffec5a039
fix: search/replace bad case () 2025-02-09 01:39:00 +08:00
yetone
e70b0fa243
fix: incorrect indentation () 2025-02-09 00:21:32 +08:00
yetone
faa6728d4b
fix: try to fix suggestions () 2025-02-07 16:26:35 +08:00
yetone
e8b0f33f18
fix(prompts): use run_command if possible () 2025-02-07 15:33:23 +08:00
yetone
c2b3cd7a32
fix: check gemini api key () 2025-02-07 13:21:45 +08:00
Dominik Link
12cf3c0418
feat(docs): added Packer to the readme and fixed vim-plug to also use render-markdown because if not it breaks () 2025-02-07 11:04:35 +08:00
yetone
fd64662fa2
fix: planning prompts ()
* fix: planning prompts

* fix: base prompts
2025-02-06 23:16:49 +08:00
yetone
29a71b2976
fix: insert conflict contents () 2025-02-06 22:24:59 +08:00
yetone
2adf335344
fix: release html2md () 2025-02-06 20:17:29 +08:00
yetone
152d0c609c
feat: serpapi () 2025-02-06 20:10:55 +08:00
yetone
402c7f9665
fix: copilot tool histories () 2025-02-06 19:19:50 +08:00
yetone
1ec12907a2
feat: fetch tool () 2025-02-06 19:13:47 +08:00
yetone
77e20fd088
feat(docs): complete tool use todo task () 2025-02-06 16:53:01 +08:00
yetone
5f6612fb8c
fix: support multiple tool use () 2025-02-06 16:41:28 +08:00
yetone
f2bd4adba4
feat: add add_file_to_context tool () 2025-02-06 16:00:14 +08:00
yetone
4f41154e83
feat: tool logs () 2025-02-06 15:15:44 +08:00
Blaine
252a9e7818
docs: fix typo in README.md () 2025-02-06 14:16:54 +08:00
yetone
d1cc23fa54
fix: multiple tool use histories and disable tools () 2025-02-06 02:46:52 +08:00
yetone
e1125fca54
feat: bedrock use tools () 2025-02-06 00:03:49 +08:00
yetone
3aaf7dad77
feat: tools support copilot () 2025-02-05 23:47:52 +08:00
yetone
0603364ea8
fix: typo () 2025-02-05 23:13:07 +08:00
yetone
1437f319d2
feat: tools ()
* feat: tools

* feat: claude use tools

* feat: openai use tools
2025-02-05 22:39:54 +08:00
ccolorado
1726d32778
fix: typo on config comment () 2025-02-04 17:06:56 +08:00
Oliver Lorton
5e1334f4e5
feat: reduces the impact of the shade function when in light mode () 2025-02-04 15:26:09 +08:00
yetone
a9ab429699
feat: trim think content in history messages () 2025-02-04 15:25:36 +08:00
yetone
85645fd9ab
feat(docs): add custom providers () 2025-02-04 01:38:25 +08:00
yetone
ef4b6077ec
feat: supports openrouter reasoning () 2025-02-04 01:38:18 +08:00
bog
ffb2a4f48d
chore: docs example for opts provider () 2025-02-03 22:33:57 +08:00
ken
43269cc07f
Feat: Add Amazon Bedrock provider () 2025-02-03 22:33:25 +08:00
yetone
cd7390de21
fix: remove unnecessary think tag () 2025-02-03 22:32:41 +08:00
Adam Sherwood
349c5f895c
fix: allow single or multi selection with mini.pick. () 2025-02-03 22:13:37 +08:00
yetone
ec3593aac6
Revert "fix(file_selector): make sure to flatten selected_paths if picker yie…" () 2025-02-03 22:01:15 +08:00
yetone
8536d102be
fix: reasoning content processing () 2025-02-03 21:55:12 +08:00
yetone
5ac934f228
chores: remove debug log () 2025-02-02 02:29:41 +08:00
yetone
b5ac768416
feat: supports reasoning_content () 2025-02-02 02:12:14 +08:00
yetone
d1286e7bfb
feat: enable token counting () 2025-02-02 01:27:12 +08:00
Christopher Brewin
0a273c2f5d
feat(sidebar): move quit and close key mappings into config values. () 2025-02-01 09:48:11 -05:00