Commit Graph

909 Commits

Author SHA1 Message Date
Hanchin Hsieh
bf61e3c7e3 fix: correct button rendering for multi-line messages in confirmation dialog
This commit fixes an issue where buttons in the confirmation dialog

would not render properly when displaying multi-line messages.

Changes:

- Add dynamic positioning for buttons based on message length

- Calculate button row position based on the number of lines in the message

- Update focus_button function to accept custom row parameter

- Ensure highlights are applied at correct positions for varied message lengths

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:47:35 +08:00
Hanchin Hsieh
3dd5bed48f feat(ui): add support for multi-line messages in confirm dialog
1. Split message into multiple lines using vim.split()

2. Apply indent to each line of the message using vim.tbl_map()

3. Improve code readability by using vim.iter() and chained methods

4. Simplify button line generation with string.rep()

Signed-off-by: Hanchin Hsieh <me@yuchanns.xyz>
2025-03-17 16:21:39 +08:00
yetone
aaf400a411 fix: parse empty code block in markdown (#1612) 2025-03-17 15:03:04 +08:00
brook hong
e204ca1cf3 feat: support tools in bedrock (#1598) 2025-03-17 13:42:18 +08:00
yetone
3504e64407 fix: empty message content (#1611) 2025-03-17 05:15:57 +08:00
yetone
eb5a2f6cca fix: missing tool use (#1610) 2025-03-17 05:00:03 +08:00
yetone
63605a55a3 fix: increase history max_tokens (#1609) 2025-03-17 04:38:08 +08:00
yetone
e05312f83b fix: reset buffer (#1608) 2025-03-17 04:05:22 +08:00
yetone
79bf76ed72 fix: increase max_tokens (#1607) 2025-03-17 03:29:44 +08:00
yetone
dfdab1d41f fix: openai tool histories (#1606) 2025-03-17 03:06:26 +08:00
yetone
078f06320c feat: make confirm window large (#1605) 2025-03-17 02:31:17 +08:00
yetone
6e77da83c1 fix: better sidebar (#1603)
* fix: better sidebar

* feat: better msg history

* fix: tests
2025-03-17 01:40:05 +08:00
yetone
f60f150a21 fix: openrouter always returns 200 regardless of the situation (#1586) 2025-03-14 19:29:16 +08:00
yetone
cd50140cb4 docs: add better codebase indexing to todo list (#1585) 2025-03-14 16:05:14 +08:00
yetone
bafe156639 feat: rename search_keyword => grep_search (#1584) 2025-03-14 15:57:24 +08:00
yetone
e332d74c06 fix: anthropic rate limit (#1583) 2025-03-14 14:13:47 +08:00
yetone
110ba8a21f optimize: refine context prompts (#1579) 2025-03-14 03:47:26 +08:00
yetone
1e82a1c0e7 fix: do not use bash to write file! (#1576) 2025-03-13 16:53:50 +08:00
yetone
931a364dad feat: add AvanteModels command (#1575) 2025-03-13 01:45:20 +08:00
yetone
d307467771 feat: hide in model selector (#1574) 2025-03-13 01:39:59 +08:00
yetone
d422cfabcd fix(docs): details format (#1573) 2025-03-13 00:04:56 +08:00
yetone
f3583a04ca docs: add mcp doc (#1572) 2025-03-13 00:01:19 +08:00
yetone
8b37cfc306 feat: system_prompt can be a function (#1571) 2025-03-12 19:57:17 +08:00
yetone
f9f92dc9d4 Revert "fix: Always handle the extra response outside of stream, such as the exceptions from bedrock (#1526)" (#1569)
This reverts commit f9ab6934d2.
2025-03-12 19:10:05 +08:00
miguelosana
fee1aacdfc feat: Add claude tools to vertex claude provider (#1559)
* feat: Add claude tools to vertex claude provider

* fix: export transform_tool from claude.lua

* Include type for transfor_tool

---------

Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
2025-03-12 18:43:44 +08:00
yetone
409ee9cfda docs: update Discord invite link (#1568) 2025-03-12 18:09:01 +08:00
yetone
9e3e8d06a2 feat: get custom tools from a function (#1567) 2025-03-12 17:57:09 +08:00
Dalton Kye Miller
e635452389 fix: mappings not clearing after diff (#1562) 2025-03-12 16:46:10 +08:00
Kasper Seweryn
c4fa4621fb fix: remove stale popup buffers (#1530)
* fix: remove stale popup buffers

* fix: restore the logic for updating the buffer

---------

Co-authored-by: yetone <yetoneful@gmail.com>
2025-03-12 16:43:25 +08:00
brook hong
f9ab6934d2 fix: Always handle the extra response outside of stream, such as the exceptions from bedrock (#1526) 2025-03-12 16:29:32 +08:00
RiN
de6e3657f1 docs: add example avante with nixvim options (#1561) 2025-03-12 02:57:35 +08:00
adasauce
70124ad366 feat: add caller information to debug logs (#1534) 2025-03-12 02:56:59 +08:00
kernitus
9552a960ef fix(azure): attempt to call is_o_series_model (#1560) 2025-03-12 02:53:59 +08:00
yetone
9c7a1a59ac fix: plenary.path is too slow (#1557) 2025-03-11 15:39:34 +08:00
yetone
5a1f9fcfb9 fix: trim empty last line (#1556) 2025-03-11 15:20:58 +08:00
yetone
dff7e9b802 optimize: is_win (#1555) 2025-03-11 15:12:39 +08:00
yetone
7c3460628b fix: cannot serialise userdata (#1551) 2025-03-11 00:55:05 +08:00
yetone
aa2c2b0054 fix: stricter static typing (#1550) 2025-03-11 00:41:21 +08:00
miguelosana
3eaaaa8f5f feat: add vertex claude provider (#1549)
* feat: Add vertex claude provider

* remove debug logging

---------

Co-authored-by: Miguelo Sana <miguelo@incubeta.com>
2025-03-10 22:43:10 +08:00
yetone
7d7f93d093 feat: upgrade rag service (#1548) 2025-03-10 16:32:17 +08:00
Thomas Müller
64b919274e fix: skip more binary files than just audio/video in RAG scan (#1547) 2025-03-10 16:16:14 +08:00
yetone
558a7bbd38 fix: close_from_input keybinding types (#1546) 2025-03-10 15:54:01 +08:00
Jae-Won Chung
9fa2d9e51d fix: remove sidebar.close_from_input default keybinding (#1536)
* Remove <c-d> from default insert mode keybinding

* Check `close_from_input ~= nil` before keymap

* Default `close_from_input` to `nil`

* Update README.md keybinding defaults

* Try to pass type check
2025-03-10 15:31:13 +08:00
wan
f9025ff415 fix: skip audio and video files during directory scan in RAG Service. (#1509) 2025-03-10 15:23:56 +08:00
yetone
cdbfe79097 docs: for ollama (#1545) 2025-03-10 02:43:12 +08:00
yetone
750ee80971 feat: add ollama as supported provider (#1543)
* feat: add ollama as supported provider

*This implementation is only working with `stream = true`*
- Uses the actual ollama api and allows for passing additional options
- Properly passes the system prompt to api

Use ollama as provider in opts like this:
opts = {
        debug = true,
        provider = "ollama",
        ollama = {
                api_key_name = "",
                endpoint = "http://127.0.0.1:11434",
                model = "qwen2.5-coder:latest",
                options = {
                        num_ctx = 32768,
                        temperature = 0,
                },
                stream = true,
        },

* fix: ollama types

---------

Co-authored-by: jtabke <25010496+jtabke@users.noreply.github.com>
2025-03-10 02:23:56 +08:00
Canopus
4976807a33 fix: thrown error when trying to use codebase with no buffer opened (#1541)
* Fix - Fix thrown error when trying to use @codebase with no buffer opened

* Style - Fix stylua formatting in repo_map and sidebar

* Fix - Restore code selection handling in sidebar
This was a mistake on my part while rushing to make the PR. I deleted an
unrelated commit that got sent by mistake, and during the second review,
I didn't notice that this important code selection functionality was
removed. The code has now been properly restored.
2025-03-10 00:20:43 +08:00
yetone
05b3b843c8 fix: selected code (#1542) 2025-03-10 00:17:24 +08:00
moecasts
32665974ee feat: add neotree shortcut tip (#1537) 2025-03-09 15:43:39 +08:00
yetone
a0e0924730 feat: carry recently viewed files as context (#1538) 2025-03-09 15:42:31 +08:00