107 Commits

Author SHA1 Message Date
Aaron Pham
4ad913435c
feat(templates): avanterules filetype support (closes #254) (#466)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:09:13 -04:00
yetone
054695cc63
chore(sidebar): remove emoji (#467) 2024-09-03 15:27:20 +08:00
yetone
65e1e178f5
feat: automatic suggestion (smart tab) (#455) 2024-09-03 14:03:59 +08:00
Aaron Pham
7266661413
feat(api): enable customizable calls functions (#457)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-02 12:22:48 -04:00
Aaron Pham
c33ab80d88
revert: remove invalid configuration (#447)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 18:51:03 -04:00
Aaron Pham
7912070c6f
fix(gemini): check if json can be decoded (#446)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 18:47:35 -04:00
yetone
3ccb71d7ef
fix(sidebar): apply current cursor (#440) 2024-09-01 17:26:27 +08:00
yetone
55c85692bf
feat(ci): add lua static analyzer (#438) 2024-09-01 17:04:33 +08:00
yetone
d9aa7c78af
feat: support windows position (#436) 2024-09-01 15:52:16 +08:00
yetone
2e2c1ba486
perf(sidebar): do not replace all content in the code buffer (#433) 2024-09-01 02:45:32 +08:00
Aaron Pham
0557deeab7
feat: tokenizers (#429)
* feat: tokenizers

This reverts commit d5a4db8321d232a1b9c0d86fc38e8dd516d15776.

* fix(inputs): #422

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-31 13:39:50 -04:00
yetone
faa46975cf fix(sidebar): the sidebar height is incorrect when selecting code 2024-08-31 23:36:28 +08:00
tang-hi
ff887af901 feat: add horizontal layout 2024-08-31 23:36:28 +08:00
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
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
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
8c71e1f624
feat: support apply current code snippet (#391) 2024-08-30 15:01:23 +08: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
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
yetone
fe6518f6de
feat: editing mode (#281) 2024-08-27 22:44:40 +08:00
yetone
d543d0ed53
fix: realign snippet line numbers (#272) 2024-08-27 15:56:38 +08:00
Aaron Pham
e80246e211
chore: remove deadcode (#265)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 02:40:24 -04:00
yetone
0841df1f8e
chore: delete useless code (#263) 2024-08-27 14:34:48 +08:00
yetone
50d0748901
refactor: remove floating windows (#262) 2024-08-27 14:28:10 +08:00
Aaron Pham
ad5b61bf6a
perf: async login (closes #253) (#258)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 02:12:35 -04:00
Aaron Pham
07af0a91f2
chore: persistent augroup name pattern (#250)
for better augroup management

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 22:31:57 -04:00
yetone
c75dc48356
fix: binding shortcuts to specific buffers (#238) 2024-08-26 18:26:56 +08:00
yetone
8cd87ac5de
fix: do not use invalid bufnr and winid (#236)
* fix: do not use invalid buf

* fix: do not use invalid win
2024-08-26 17:43:38 +08:00
yetone
de29868f54
fix: schedule vim api calls (#216) 2024-08-26 02:28:35 +08:00
yetone
28fd18fd0f
fix: types (#210) 2024-08-25 17:12:33 +08:00
Aaron Pham
3f906e5289
refactor(history): use XDG_DATA_STATE as source dir (#209)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 03:12:53 -04:00
yetone
ee88563215
fix: types (#208) 2024-08-25 14:26:42 +08:00
Aaron Pham
2e916b4747
chore(cmp): update slash commands sources (#206)
and more functional

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 01:59:22 -04:00
Aaron Pham
80250de7a6
fix(hint): consistent sidebar submit (#205)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 00:24:48 -04:00
Aaron Pham
305d972849
chore(keymaps): add toggle options (#204)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 00:16:25 -04:00
Aaron Pham
46ec0a50a7
chore(icons): support mini.icons (#202)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 22:10:05 -04:00
Aaron Pham
f99bf767b5
fix(highlight): allow override (#201)
update envvar parsing from cmdline

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 20:15:45 -04:00
Aaron Pham
8d375dd591
chore(sidebar): make sure to balance win when close (#198)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 13:13:50 -04:00
yetone
303928de88
Revert "feat: add support of light theme" (#196)
This reverts commit 8b55833db646f0acb5481ee21f98a426da4a93e9.
2024-08-25 00:59:49 +08:00
tang donghai
8b55833db6
feat: add support of light theme (#195) 2024-08-25 00:53:07 +08:00
tang donghai
dd6bfad844
feat(mapping): shortcut for input box (#194) 2024-08-24 12:51:59 -04:00
yetone
9ac9f827ba
feat: show shortcut key hint (#193) 2024-08-24 20:29:46 +08:00
yetone
0e07128b56
feat: use regular floating win instead of nui.input (#191) 2024-08-24 17:34:41 +08:00
yetone
b8b5a3086e
fix: nui input cannot paste (#187) 2024-08-24 16:25:08 +08:00
yetone
3dbdba198a
feat: commands with cmp (#183) 2024-08-24 04:32:44 +08:00
yetone
f2173c9a3c
chore: refine creating floating win (#182) 2024-08-24 02:33:35 +08:00