Skip to content

Commit 0b486a8

Browse files
committed
Let auto be a valid provider option
The setup validation didn't recognize "auto" as a valid provider value. This caused vim.notify to be called with a validation warning The ergoterm tests using "auto" were failing because they expected no notifications (vim.notify:was_not_called())
1 parent 8450369 commit 0b486a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/claudecode/terminal.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function M.setup(user_term_config, p_terminal_cmd)
218218
config[k] = v
219219
elseif k == "split_width_percentage" and type(v) == "number" and v > 0 and v < 1 then
220220
config[k] = v
221-
elseif k == "provider" and (v == "snacks" or v == "ergoterm" or v == "native") then
221+
elseif k == "provider" and (v == "snacks" or v == "ergoterm" or v == "native" or v == "auto") then
222222
config[k] = v
223223
elseif k == "show_native_term_exit_tip" and type(v) == "boolean" then
224224
config[k] = v

0 commit comments

Comments
 (0)