165 Commits

Author SHA1 Message Date
Aaron Pham
ad5b61bf6a
perf: async login (closes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 02:12:35 -04:00
Aaron Pham
64cedd61d5
chore(utils): cleanup utils to support other than lazy.nvim ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 01:46:23 -04:00
Aaron Pham
3369f732c5
chore(opts): respect user opts ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 01:39:48 -04:00
Aaron Pham
07af0a91f2
chore: persistent augroup name pattern ()
for better augroup management

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 22:31:57 -04:00
Aaron Pham
f03c0918c9
chore: ignore invalid linting ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 17:39:04 -04:00
Aaron Pham
72ba4ad52e
refactor: cleanup diff highlights ()
make sure to run on scheme change

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 17:18:37 -04:00
yetone
b874045885
feat: make tiktoken optional () 2024-08-27 01:46:05 +08:00
yetone
1cb68e9aa2
fix: do not need compatible with old nvim () 2024-08-26 20:35:36 +08:00
kaiix
26409d94b5
fix: don't automatically setup openai when its not the configured provider () 2024-08-26 18:35:04 +08:00
yetone
c75dc48356
fix: binding shortcuts to specific buffers () 2024-08-26 18:26:56 +08:00
yetone
8cd87ac5de
fix: do not use invalid bufnr and winid ()
* fix: do not use invalid buf

* fix: do not use invalid win
2024-08-26 17:43:38 +08:00
Aaron Pham
a1aed57c60
perf: use envvar whenever possible, and use cmd only as fallback ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 01:13:12 -04:00
Aaron Pham
85101c1410
fix(diff): disable inlay in diff buffer ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 01:12:11 -04:00
Aaron Pham
4f8c33cf5f
refactor: move highlights to groups with fg and bg ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 01:11:05 -04:00
Aaron Pham
996378d2f8
chore(providers): add failed warning ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-26 00:29:23 -04:00
Jake
312543b680
feat(provider): initial error handling on claude ()
* fix: improve error handling for common issues

* fix: Providers.on_error for handling API errors

* Update lua/avante/providers/init.lua

---------

Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2024-08-25 21:26:19 -04:00
yetone
de29868f54
fix: schedule vim api calls () 2024-08-26 02:28:35 +08:00
Aaron Pham
39d54e2674
fix(providers): run sync to avoid race ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 13:38:40 -04:00
Aaron Pham
eaa373a7f6
fix(env): make sure to popup on nofile (fixes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 11:29:55 -04:00
yetone
28fd18fd0f
fix: types () 2024-08-25 17:12:33 +08:00
Aaron Pham
3f906e5289
refactor(history): use XDG_DATA_STATE as source dir ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 03:12:53 -04:00
yetone
ee88563215
fix: types () 2024-08-25 14:26:42 +08:00
yetone
b494d05c9d
fix: the highlights are not set correctly () 2024-08-25 14:06:00 +08:00
Aaron Pham
2e916b4747
chore(cmp): update slash commands sources ()
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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 00:24:48 -04:00
Aaron Pham
305d972849
chore(keymaps): add toggle options ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-25 00:16:25 -04:00
Aaron Pham
46ec0a50a7
chore(icons): support mini.icons ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 22:10:05 -04:00
Aaron Pham
f99bf767b5
fix(highlight): allow override ()
update envvar parsing from cmdline

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 20:15:45 -04:00
Aaron Pham
a7d3defa3d
feat(llm): add support for parsing secret vault ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-24 17:52:38 -04:00
Aaron Pham
8d375dd591
chore(sidebar): make sure to balance win when close ()
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" ()
This reverts commit 8b55833db646f0acb5481ee21f98a426da4a93e9.
2024-08-25 00:59:49 +08:00
tang donghai
8b55833db6
feat: add support of light theme () 2024-08-25 00:53:07 +08:00
tang donghai
dd6bfad844
feat(mapping): shortcut for input box () 2024-08-24 12:51:59 -04:00
Coffee
1142c3c274
fix(openai): add support for Cloudflare's AI-Gateway () 2024-08-24 12:32:16 -04:00
yetone
9ac9f827ba
feat: show shortcut key hint () 2024-08-24 20:29:46 +08:00
yetone
0e07128b56
feat: use regular floating win instead of nui.input () 2024-08-24 17:34:41 +08:00
yetone
b8b5a3086e
fix: nui input cannot paste () 2024-08-24 16:25:08 +08:00
yetone
dbf2509d44
fix: cannot use function as cmp kind () 2024-08-24 04:35:33 +08:00
yetone
3dbdba198a
feat: commands with cmp () 2024-08-24 04:32:44 +08:00
yetone
f2173c9a3c
chore: refine creating floating win () 2024-08-24 02:33:35 +08:00
yetone
4693da8757
fix: refine floating window opts () 2024-08-24 02:25:26 +08:00
yetone
964c4621f6
fix: close the hints popup when switching to another buffer () 2024-08-24 00:21:00 +08:00
yetone
7bea73eb80
fix: check if is sidebar buf () 2024-08-24 00:14:20 +08:00
yetone
43c5544a29
fix: splitting window size () 2024-08-23 23:52:13 +08:00
Aaron Pham
d2775135a3
feat(llm): cohere support ()
should be good set of defaults now, one in US, one in canada, and
microsoft :/

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 09:36:40 -04:00
yetone
12d7cd8ec7
fix: code buffer tab buttons should not be hijacked () 2024-08-23 18:38:14 +08:00
yetone
25f8175662
chore: fix types () 2024-08-23 18:33:49 +08:00
Yusu Pan
7d4be712f0
fix: correct minor typo in sidebar.lua () 2024-08-23 18:17:58 +08:00
yetone
a3c2a9a0d5
fix: switch to an invalid window () 2024-08-23 18:08:58 +08:00
jihunkim0
79e9aac1af
fix: api key name ()
Co-authored-by: Jihun Kim <jihunk@google.com>
2024-08-23 17:59:02 +08:00