73 Commits

Author SHA1 Message Date
Aaron Pham
59959d7522
fix(lua): linter for config ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 22:56:17 -04:00
Aaron Pham
d7d476ddf5
chore(secrets): support table of string ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 21:47:01 -04:00
Aaron Pham
0d8098e4eb
fix(style): add parentheses ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 05:12:07 -04:00
Aaron Pham
e8c71d931e
chore: run stylua [generated] ()
* chore: add stylua

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

* chore: running stylua

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:19:54 -04:00
Aaron Pham
4ad913435c
feat(templates): avanterules filetype support (closes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-03 04:09:13 -04:00
yetone
65e1e178f5
feat: automatic suggestion (smart tab) () 2024-09-03 14:03:59 +08:00
Aaron Pham
7266661413
feat(api): enable customizable calls functions ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-02 12:22:48 -04:00
Aaron Pham
96d060db83
fix(highlight): respect user bold configuration (fixes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 19:33:04 -04:00
Aaron Pham
c33ab80d88
revert: remove invalid configuration ()
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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-09-01 18:47:35 -04:00
yetone
d9aa7c78af
feat: support windows position () 2024-09-01 15:52:16 +08:00
Aaron Pham
0557deeab7
feat: tokenizers ()
* feat: tokenizers

This reverts commit d5a4db8321d232a1b9c0d86fc38e8dd516d15776.

* fix(inputs): 

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
534b1e6bec fix: remove unnecessary alerts 2024-08-31 23:51:54 +08: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
Aaron Pham
97e691861c
fix(after): early supression of warnings (fixes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-30 19:07:52 -04:00
Aaron Pham
b196627e86
chore(provider): use latest cohere models ()
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
yetone
2997d4669a
refactor: refactor planning prompts to resolve line number issues and indentation issues () 2024-08-30 18:53:49 +08:00
Aaron Pham
ea73816665
fix(warning): taken into account silent_warning (fixes ) ()
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 () 2024-08-30 01:51:26 -04:00
Aaron Pham
483f71dba4
feat(provider): support copilot ()
* 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 ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 17:08:39 -04:00
Josef Moudrik
fa043bf8ce
config.lua: improve check for img-clip () 2024-08-29 23:17:44 +08:00
yetone
cdd7730bd7
feat: choose all theirs () 2024-08-29 20:32:00 +08:00
Maddison Hellstrom
abe08d5283
feat: pick conflict under cursor ()
Added `cc` which picks the conflict under the cursor, if there is one.
2024-08-29 02:25:45 -04:00
Aaron Pham
1e009822e4
chore(mappings): add options to reflect wiki changes ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-29 01:09:26 -04:00
Aaron Pham
2e6a26240e
feat(mapping): plug and expose API ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 23:56:00 -04:00
Aaron Pham
c635f73748
feat: pasting image within buffer ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 14:43:14 -04:00
Aaron Pham
755c15c0bd
chore(clipboard): separate logic to save as base64 and files ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-28 11:52:12 -04:00
yetone
bfa203018e
fix: remove copilot provider () 2024-08-28 20:51:20 +08:00
Aaron Pham
943d3f20b5
fix(local): ensure to set login to true in local (fixes ) ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 18:05:47 -04:00
Aaron Pham
2feaa28ced
chore: cleanup typo and win options ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 13:13:38 -04:00
Aaron Pham
cf68572494
feat(clipboard): initial support ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 06:57:29 -04:00
Aaron Pham
36446a24e3
chore(config): customize prompt prefix ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-27 03:44:05 -04: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
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
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
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
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
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
Aaron Pham
c6d5073945
chore(llm): cut-back support ()
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 12:21:30 +08:00
Aaron Pham
6475407d0d
fix(llm): persistent key check for override class ()
* fix(llm): make sure to allow passing custom module

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

* fix: correct custom class

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

* fix: correct attribute

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-22 23:52:49 -04:00
Aaron Pham
ed5057448c
feat: tab switching behaviour ()
* feat: tab switching behaviour

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

* revert: features

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 00:48:20 +08:00
Aaron Pham
8d52229f16
refactor(llm): cleanup providers for future ops (closes ) ()
support allow_insecure and proxy ops

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-22 01:48:40 -04:00