100 Commits

Author SHA1 Message Date
yetone
d7af33887d
feat: streaming updates content (#170) 2024-08-23 17:58:46 +08:00
Aaron Pham
2fc266edd2
fix(refresh): correct refresh in code buffer (#166)
only render inlay in codebuf

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 02:23:45 -04:00
Aaron Pham
1cbf7e106c
feat(experimental): slash commands (#162)
* feat(experimental): slash commands

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

* fix(jump): add binding jumping between codeblock

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

* chore: add docs

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 02:01:14 -04:00
Aaron Pham
ce57528961
fix(win): make sure to balance once entering (#160)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-23 01:06:37 -04:00
yetone
49fabfc358
fix: synchronize the size of the input window and the input_container window (#156) 2024-08-23 01:00:35 +08:00
Aaron Pham
ed5057448c
feat: tab switching behaviour (#155)
* 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
yetone
2e75a10556
fix: check winid is valid (#154) 2024-08-23 00:33:48 +08:00
yuchanns
4112eb1d4e fix(sidebar): invalid window number 2024-08-22 17:37:37 +08:00
yetone
67c0be2bc8
fix: synchronize the size of the floating window and split window (#151) 2024-08-22 17:01:45 +08:00
yetone
8c8d864637
fix: floating window highlights (#149) 2024-08-22 14:46:08 +08:00
Aaron Pham
8d52229f16
refactor(llm): cleanup providers for future ops (closes #134) (#147)
support allow_insecure and proxy ops

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-22 01:48:40 -04:00
yetone
380a7254ae
chore: get git root using more advanced methods (#146) 2024-08-22 11:16:42 +08:00
MijikHna
480e35720d
added a check for git root query (#145) 2024-08-22 09:19:30 +08:00
yetone
a08a5b8dc1
refactor: reduce split windows (#143) 2024-08-22 03:38:22 +08:00
yetone
c41ad591a1
fix: selected code header text (#141) 2024-08-21 23:38:27 +08:00
yetone
58bc74d4f8
feat: add rounded opt (#139) 2024-08-21 23:31:11 +08:00
yetone
8a62e3e225
feat: add padding to title (#138) 2024-08-21 23:22:34 +08:00
yetone
f95feebd39
chore: scroll to end (#137) 2024-08-21 23:20:30 +08:00
Aaron Pham
76c7972fb1
chore: remove unaligned character with options to align text (#136)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-21 23:12:10 +08:00
yetone
62928ace70
fix: remove status line (#132) 2024-08-21 22:31:56 +08:00
yetone
8eef44d45a
fix: set eob to a blank character (#131) 2024-08-21 22:15:31 +08:00
yetone
2e48d387a9
refactor: get rid of nui-components (#118) 2024-08-21 21:28:17 +08:00
yetone
00f1e296b0
fix: do not write to invalid buffer (#112) 2024-08-20 17:58:05 +08:00
yetone
fcd7a82ff7
feat: use devicon instead of emoji (#111) 2024-08-20 17:51:14 +08:00
yetone
75ed191f43
fix: switch back to non-streaming update mode (#106) 2024-08-20 10:39:09 +08:00
Aaron Pham
5f74c54e55
chore: remove unused functions and simplify with utils (#103)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 19:15:58 -04:00
yetone
2d160fc5d7
fix: callback was not called in stream mode (#95) 2024-08-20 01:51:20 +08:00
yetone
940106d82b
fix: do not insert the stream results into user code (#94) 2024-08-20 01:47:43 +08:00
Aaron Pham
2463c896f1
fix(claude): sending state manually (#84)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 06:11:02 -04:00
Aaron Pham
2700cad921
feat(providers): add support for custom vendors (#74)
* feat(providers): add support for custom vendors

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

* fix: override configuration not setup

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-19 10:20:29 +08:00
Aaron Pham
5fa4f701dd
refactor(ai): streaming chunks to avoid excessive redraw. (#73)
* perf(ai): token streaming with quick refactoring

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

* fix: window resize and AvanteSwitchProvider

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

* revert: config change

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

* chore: return early

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 15:03:25 -04:00
yetone
834bb9ea77
feat: change chat record prefix (#71) 2024-08-19 00:05:13 +08:00
yetone
1f1aed36bd
fix: check if renderer is nil (closes #63) (#64) 2024-08-18 05:54:57 -04:00
Aaron Pham
d885bd9680
fix(ui): set selection per buffer and remove spinner (closes #32) (#62)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 17:36:30 +08:00
Aaron Pham
c4e26a8767
feat(experimental): add section for behaviour (#55)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 04:31:24 +08:00
Aaron Pham
af1f51455e
feat(ui): add envvar popup with warnings (#54)
* feat: add support for input popup of envvar

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

* chore: update README and ignore certain filetypes for popup

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

* fix: readme doesn't support nested callout

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 04:04:40 +08:00
yetone
aa9810bfeb
chore: celebration emoji (#50) 2024-08-18 02:20:12 +08:00
Aaron Pham
95b42e835f
chore(cmd): add manual refresh and update types (#44)
* chore(cmd): add manual refresh and update types

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

* chore: add refresh mapping

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

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-18 01:41:34 +08:00
yetone
f66b5c6784
fix: snippets missing empty lines (#42) 2024-08-17 22:52:57 +08:00
Aaron Pham
83402e4a2d
chore(types): add annotations for block and refresh on winchanged (#40)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-17 22:39:59 +08:00
yetone
3dca5f4764
feat: ask selected code block (#39) 2024-08-17 22:29:05 +08:00
yetone
dea737bf05
fix: codeblocks have not been synchronized (#38) 2024-08-17 19:53:45 +08:00
yetone
c3c47264f0
fix: shortcut key tips (#37) 2024-08-17 15:55:34 +08:00
yetone
0e0d9d6f7d
fix: do not jump to the view window (#36) 2024-08-17 15:52:12 +08:00
yetone
80feab88cc
fix: no wrap (#34) 2024-08-17 15:34:37 +08:00
yetone
f8cbc88424
refactor(ui): bounding popover (#13) (#29)
* refactor(ui): bounding popover (#13)

* refactor(ui): bounding popover

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

* chore: update readme instructions on setting up render-markdown.nvim

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

* chore: align code style

* fix: incorrect type annotation

* fix: make it work with mouse movement

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

* fix: focus correct on render

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

* fix: make sure to close the view

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

* chore: cleanup cursor position

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

* docs: add notes on rc

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

* fix: make sure to apply if has diff

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

* fix: do not simulate user input

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: yetone <yetoneful@gmail.com>

* fix(autocmd): make sure to load tiktoken on correct events (closes #16) (#24)

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

* feat(type): better hinting on nui components (#27)

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

* feat: scrollview and tracking config and lazy load and perf (#33)

* feat: scrollview and tracking config and lazy load and perf

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

* fix: add back options

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

* revert: remove unused autocmd

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

* fix: get code content

* fix: keybinding hint virtual text position

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: yetone <yetoneful@gmail.com>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-08-17 15:14:30 +08:00
yetone
d92d26bf2a
fix: make the result buffer unmodifiable (#10) 2024-08-15 20:58:01 +08:00
yetone
b4d40802a8
feat: more like Cursor 2024-08-15 20:07:44 +08:00
yetone
cca2c23dad
feat: more like Cursor 2024-08-15 19:04:15 +08:00
yetone
c8b7c832a5
feat: add sidebar.lua 2024-08-15 17:57:19 +08:00