Skip to content

Commit 3bf9119

Browse files
committed
fix(neovim): add missing index numbering in model picker options
Model selection was broken because options weren't numbered but the parser expected to extract index from '^(%d+)'. This caused idx to be nil and no agent models were updated when selected via Ctrl+M.
1 parent 25cec52 commit 3bf9119

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neovim/lua/chuchu/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ function M.show_model_picker(callback, agent, backend)
841841
and "[FREE]"
842842
or string.format("$%.2f/$%.2f", price_in, price_out)
843843

844-
local line = string.format("%s%s%s %s",
845-
name_with_rec, padding, price_display,
844+
local line = string.format("%d. %s%s%s %s",
845+
i, name_with_rec, padding, price_display,
846846
ctx_str ~= "" and string.format("(%s)", ctx_str) or "")
847847
table.insert(options, line)
848848
end

0 commit comments

Comments
 (0)