690 Commits

Author SHA1 Message Date
yetone
bd8afce3b0
feat: tab flow (#1077) 2025-01-14 15:39:57 +08:00
Aaron Pham
ba9f014b75
fix(auto_suggestion_provider): default to claude in copilot (#1072) 2025-01-12 00:56:21 +08:00
Christopher Brewin
f401983737
feat(sidebar): support files outside of the current working directory. (#1065) 2025-01-11 23:15:13 +08:00
yetone
24641d8264
refactor: new prompts structure (#1071) 2025-01-11 23:09:55 +08:00
Ethan Howard
c3e7ba0be0
feat: respect git ignore for autosuggestions (#994) 2025-01-11 23:00:19 +08:00
Ikko Eltociear Ashimine
5c1b9d5463
docs: update README.md (#1070)
acheived -> achieved
2025-01-11 22:57:10 +08:00
yetone
e14eb002d5
feat: add luatest (#1064) 2025-01-10 00:23:59 +08:00
Yang Jun
6c10081899
fix: failed to download tokernizer from HF (#1060) 2025-01-09 18:09:33 +08:00
Alban Kurti
225e6f9572
feat: auto focus sidebar (#982) 2025-01-09 01:40:19 +08:00
Yang Jun
794c643033
fix: cannot apply changes if model is gemini-2.0-flash-thinking-exp-1219 (#1052) 2025-01-09 00:14:14 +08:00
recih
4b4995d669
fix: Build.ps1 build from source not work (#1050) 2025-01-08 00:55:15 +08:00
yetone
a3ac0b84be
fix: seleted file is nil (#1049) 2025-01-07 14:36:31 +08:00
Herschel
6ebba1526b
feat(file_selector_fzf): Add multi select for fzf-lua file selector (#1047) 2025-01-07 14:35:24 +08:00
Yang Jun
c8ba3d36cc
feat: focus to input after /clear or /reset be execuated (#1044) 2025-01-06 16:51:35 +08:00
yetone
078e9312dc
fix: filter out redundant backticks in editing mode (#1039) 2025-01-05 21:15:21 +08:00
William Heryanto
369410bdb1
fix: Gemini not reaching end state (#1027) 2025-01-05 21:11:04 +08:00
hat0uma
0536c6e552
fix(copilot): Prioritize xdg_config for OAuth token references on Windows (#1037) 2025-01-05 20:45:25 +08:00
yetone
48fc35f978
fix: hide internal properties of config (#1036) 2025-01-05 18:27:23 +08:00
Enes Kutay SEZEN
9895ce7681
feat (file_selector): Add multi select (#971)
* Add multi select

* Remove comment
2025-01-05 17:23:52 +08:00
Olicorne
42c1d292cf
docs: clearer comment on how to track the github release (#976)
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
2025-01-05 17:20:50 +08:00
Ezechukwu Ojukwu
f35ace75dc
docs: add blink.cmp configuration doc 2025-01-05 17:19:51 +08:00
yetone
3ec847e3cb
fix(ci): lua lint (#1035) 2025-01-05 17:11:15 +08:00
f7b51730df
fix(switch_windows): add nowait to avoid pre-<Tab> keymap (#1028) 2025-01-05 13:24:03 +08:00
Larry Lv
ec5d1abf34
fix(openai): support all o series models (#1031)
Before this change, since `max_completion_tokens` was not set for `o` series models, the completion request will time out sometimes. This makes sure it converts the `max_tokens` parameter to `max_completion_tokens` for `o` series models.

I tested this change with `gpt-4o-mini`, `o1-mini` and `o3-mini`, and they all still work as expected.
2025-01-05 13:23:33 +08:00
yetone
81e5f1937f
fix: Claude sometimes gets lazy and doesnt return the filepath (#1025) 2025-01-02 21:34:39 +08:00
Saltfish
40e5ed3cf9
fix: typo in vim-plug config (#1009) 2025-01-02 12:03:29 +08:00
Hanchin Hsieh
c088ad7aff
feat: use gh cli if exists (#1017)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-01-01 20:51:52 +08:00
yetone
a0d05544af
Revert "fix(llm): call on_complete() function at callback (#952)" (#1018) 2025-01-01 20:48:17 +08:00
Sam Jones
9abbec4c5b
fix(copilot): refreshing copilot tokens (#935)
* fix: wait for github copilot token to refresh before calling completion

* feat: timer to refresh copilot token to prevent 401
2024-12-29 22:58:13 -08:00
Rohith Ravi
be92be6124
feat(context): mention @quickfix to add files in qf to context (#988)
Neovim allows quickfix list to be populated in a variety of ways: grep,
lsp symbol references etc. Being able to add files in the quickfix
window to the LLM chat context allows for interesting workflows. For
example, one could search for a symbol using the LSP integration,
populate the quickfix with that list and then pass those along as
context in Avante using @quickfix mention in the sidebar.

If there are no files in the quickfix list or the items do not have a
file, nothing is added to the context.
2024-12-24 22:48:37 +08:00
Christopher Brewin
429bdd6b61
fix (sidebar) rendering and applying snippets for new files and files outside of the sidebar selected file context. (#991) 2024-12-24 22:44:02 +08:00
Changmin Choi
9f3793b579
fix(llm): call on_complete() function at callback (#952) 2024-12-24 22:42:12 +08:00
kernitus
0d62ffd1cb
fix: azure o1 unsupported options (#995) 2024-12-24 22:40:59 +08:00
yetone
01e05a538b
fix: more reasonable error reporting (#965) 2024-12-18 23:16:41 +08:00
Christopher Brewin
8067cb0240
fix(file_selector): empty buffer and chat without file context. (#953) 2024-12-18 19:22:40 +08:00
yetone
dde035831a
fix(ci): lua lint (#960) 2024-12-17 20:47:52 +08:00
Michael Gendy
e98fa46bec
feat(tokens): add token count display to sidebar (#956)
* feat (tokens) add token count display to sidebar

* refactor: calculate the real tokens and reuse input hints to avoid occlusion

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-17 20:43:25 +08:00
Christopher Brewin
e612ad7566
feat(file_selector): command for switching the file picker provider. (#958) 2024-12-17 19:29:28 +08:00
yetone
9e0b5bf8f1
fix(ci): lua style (#948) 2024-12-13 23:24:29 +08:00
yetone
4d1447b62f
fix: also filter out selected files when using fzf and telescope (#947) 2024-12-13 23:23:16 +08:00
yetone
1516ce093a
fix(ci): lua style (#946) 2024-12-13 23:05:44 +08:00
Alexander Muratov
eb1bc657a1
refactor & fix: improve libraries initialization (#921)
* refactor(libs): extract libraries initialization

Extract initialization logic into separate functions
for better error handling and reusability.

* fix(libs): improve core libraries init

This change helps prevent runtime errors from uninitialized libraries.
2024-12-13 23:00:43 +08:00
Maddison Hellstrom
b102f673c4
feat(AvanteClear): accept args to clear history, memory or cache (#930)
* chore: extract sidebar clear history/memory functions

* feat(AvanteClear): accept args to clear history, memory or cache

Usage:
```
:AvanteClear [history|memory|cache]
```

- changed default behavior from clearing the cache to clearing history.
- added args to clear history, memory or cache.
- added confirm dialog before clearing cache.
2024-12-13 22:59:09 +08:00
Fernando Freire
5c20cc1779
feat(context): add current buffer to selected file ctx (#941) 2024-12-13 22:57:42 +08:00
Aaron Lifton
a1da07097d
feat: allow configurable file select provider (#944)
- add file_selector config
- add providers for fzf and telescope
2024-12-13 22:55:36 +08:00
Christopher Brewin
4d6f8e65fb
feat (sidebar) nvim-web-devicons support files with multiple dots and use default for unknown file types. (#943) 2024-12-13 22:54:16 +08:00
Christopher Brewin
78dd9b0a6d
feat(context): add a ui for selecting and adding files to the sidebar as context (#912)
* feat(sidebar): supports select files

chore (context) update add type annotations to context functions

chore (sidebar) remove unused notify function call

refactor (sidebar) remove setting search file to file path

chore (sidebar) remove nvim_notify debugging api call

* feat (files) allow selecting a file by string via cmp suggestion menu

* chore (context) refactor to allow context using @file with a context view

* refactor (context) refactor seletected file types as an array of path and content

* refactor (config) remove unused configuration options

* refactor (sidebar) remove unused unbild key

* refactor (context) remove unused imports

* refactor (mentions) update mentions to support items with callback functions and removal of the underlying selection.

* fix (sidebar) add file context as a window that is visitable via the tab key

* refactor (file_content) remove file content as an input to llm

* feat (sidebar) support suggesting and applying code in all languages that are in the context

* feat (sidebar) configurable mapping for removing a file from the context.

* feat (context_view) configure hints for the context view for adding and deleting a file.

* feat (context) add hints for the context view.

* fix (sidebar) type when scrolling the results buffer.

* refactor (selected files) refactor llm stream to accept an array of selected file metadata

* refactor: context => selected_files

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2024-12-12 01:29:10 +08:00
yetone
3b33170097
Update README.md (#940) 2024-12-11 21:31:29 +08:00
yetone
664f3d5429
Update README.md (#939) 2024-12-11 21:21:42 +08:00
Han Pham
4cdbb9989c
doc: add missing descriptions for user commands (#938)
Usage for user commands, such as `:AvanteAsk`, are not detailed in the
documentation. I find this piece of information to be useful as
reference for the users.
2024-12-11 17:04:19 +08:00