298 Commits

Author SHA1 Message Date
yetone
d5a4db8321
Revert tokenizers (#423)
* Revert "fix: add missing "with" in README"

This reverts commit bf1e7f1f17c8b82687b15c41e5a8104ea03f70cf.

* Revert "feat: tokenizers (#407)"

This reverts commit d2095ba267abbfe169582708a4449e609aa9709b.
2024-08-31 22:45:31 +08:00
Aaron Pham
d2095ba267
feat: tokenizers (#407)
* feat: autobuild tiktoken lib and schenanigans

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: revert readme changes

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(build): windows

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>

* chore(plugin): early load commands and base setup

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(build): make sync

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* feat: rust go vroom vroom

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* feat: scuffed afaf implementation binding go brrrr

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: remove dups

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix(tokens): calculate whether we should do prompt_caching (fixes #416)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: ignore lockfiles

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* Update README.md

* Update crates/avante-tokenizers/README.md

* chore: remove unused

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: remove auto build

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
Co-authored-by: yuchanns <me@yuchanns.xyz>
2024-08-31 07:19:59 -04:00
Aaron Pham
81b44e4533
fix(clipboard): supress in paste_image branch (#414)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-31 02:38:48 -04:00
yetone
0c9e715829
perf(claude): the prompt caching is used by default (#413) 2024-08-31 13:54:49 +08:00
yetone
6b11ac7fd5
perf(selection): reduce the number of times indentation is calculated (#412) 2024-08-31 13:29:28 +08:00
yetone
2a0a8684cf
fix(selection): cursor out of range when restoring (#411) 2024-08-31 12:30:22 +08:00
Aaron Pham
97e691861c
fix(after): early supression of warnings (fixes #385) (#409)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 19:07:52 -04:00
Aaron Pham
b09ff856b7
fix(copilot): support credentials saved with copilot.vim (#404)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 15:12:20 -04:00
Aaron Pham
5ff5dcf72b
chore(openai): add back support functions for ease-of-use (#402)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 13:49:08 -04:00
Aaron Pham
b196627e86
chore(provider): use latest cohere models (#400)
Update prompts to correct grammar
concat with table.concat to avoid overhead

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 13:39:36 -04:00
Aaron Pham
61acd714ba
fix(copilot): doesn't yet support image (#398)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 11:59:40 -04:00
yetone
104484f17c
fix: use the original prompts (#397) 2024-08-30 22:21:50 +08:00
yetone
5cf85d59bd
fix: ensure there is no overlap between code snippets (#396) 2024-08-30 20:43:26 +08:00
yetone
fc1bcda822
fix: copilot message format (#395) 2024-08-30 19:25:04 +08:00
yetone
2997d4669a
refactor: refactor planning prompts to resolve line number issues and indentation issues (#382) 2024-08-30 18:53:49 +08:00
yetone
07c1d707da
fix: indentation issue in copilot model and openai model (#393) 2024-08-30 15:40:40 +08:00
yetone
ec4d2eee0b
fix: copilot config path (#392) 2024-08-30 15:13:52 +08:00
yetone
8c71e1f624
feat: support apply current code snippet (#391) 2024-08-30 15:01:23 +08:00
Aaron Pham
ea73816665
fix(warning): taken into account silent_warning (fixes #385) (#388)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 02:08:59 -04:00
Cosmin Nicolaescu
b7127b33c6
chore(provider): update supported LLM list (#386) 2024-08-30 01:51:26 -04:00
Aaron Pham
483f71dba4
feat(provider): support copilot (#381)
* feat(provider): add back support for copilot

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* docs: add acknowledgement

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 23:36:39 -04:00
Aaron Pham
b43377c044
chore(config): add silent_warning options (#378)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 17:08:39 -04:00
Aaron Pham
bd500feeec
chore(logs): silent safe_keymap_set to debug (fixes #376) (#377)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 17:00:44 -04:00
Aaron Pham
33dc1ed470
chore(clipboard): accept nil (#371)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 13:14:19 -04:00
Josef Moudrik
fa043bf8ce
config.lua: improve check for img-clip (#363) 2024-08-29 23:17:44 +08:00
yetone
cdd7730bd7
feat: choose all theirs (#361) 2024-08-29 20:32:00 +08:00
yetone
24b0bfadea
fix: compatible with the situation of disabling lsp inlay_hint delay (#360) 2024-08-29 19:46:51 +08:00
Maddison Hellstrom
abe08d5283
feat: pick conflict under cursor (#355)
Added `cc` which picks the conflict under the cursor, if there is one.
2024-08-29 02:25:45 -04:00
Aaron Pham
5c1861d93f
feat(azure): support vision (#354)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:48:40 -04:00
Aaron Pham
93ca541262
feat(gemini): support vision model (closes #294) (#351)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:26:26 -04:00
Aaron Pham
76a5ccda5f
chore(gemini): allow overrides from config (#350)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:17:31 -04:00
Aaron Pham
1e009822e4
chore(mappings): add options to reflect wiki changes (#349)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:09:26 -04:00
Hanchin Hsieh
cb197fb606
feat(clipboard): support windows (#345)
Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2024-08-29 00:00:19 -04:00
Aaron Pham
38a5dbe429
fix(mapping): eager set via lua functions (#347)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 00:00:10 -04:00
Aaron Pham
2e6a26240e
feat(mapping): plug and expose API (#346)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 23:56:00 -04:00
Aaron Pham
8a683b053b
fix(style): reformat (#344)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 19:56:11 -04:00
Aaron Pham
1e9c14db06
fix(diff): use buffer from event for callback (#343)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 19:54:46 -04:00
Daniel Rodriguez
bb5411cd9a
fix(openai): first chunk emit errors (#337) 2024-08-28 18:36:50 -04:00
Aaron Pham
1c4aef68cb
fix(inlay): make sure to check for previous options (fixes #334) (#340)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 18:31:46 -04:00
Aaron Pham
3e9021f03c
fix(hint): make sure to only show hint once (#336)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 15:47:29 -04:00
Aaron Pham
d622feedfa
fix(clipboard): set cursor to new line (#335)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 15:12:44 -04:00
Aaron Pham
2e48174d09
fix(refresh): check if sidebar is available or not (#333)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 14:52:57 -04:00
Aaron Pham
c635f73748
feat: pasting image within buffer (#331)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 14:43:14 -04:00
Aaron Pham
46a621e9de
fix: check for clipboard path locally to avoid recursion (#330)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 12:54:06 -04:00
Filipe Lima
cadee677ba
feat: make nvim-web-devicons an optional dependency (#328)
* chore: make `web-devicons` optional

* docs: update readme install instructions
2024-08-29 00:49:16 +08:00
Aaron Pham
755c15c0bd
chore(clipboard): separate logic to save as base64 and files (#329)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 11:52:12 -04:00
Brent Yi
2c450b1da3
fix: AvanteEdit highlight for visual line mode (#326) 2024-08-28 11:46:26 -04:00
jkunlin
1c0623a9df
fix(highlights): give user config higher priority (#306)
* fix(highlights): give user config higher priority

* Update lua/avante/highlights.lua

---------

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-08-28 11:44:57 -04:00
yetone
9dc00ecc10
fix: gemini (#323) 2024-08-28 22:17:00 +08:00
yetone
c54d2639f4
fix: spinner (#320) 2024-08-28 21:27:55 +08:00