Skip to content

Commit 792a297

Browse files
authored
chore: add notification when trying to change adapter (#706)
1 parent d5219e3 commit 792a297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/codecompanion/strategies/chat/keymaps.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ M.change_adapter = {
467467
desc = "Change the adapter",
468468
callback = function(chat)
469469
if config.display.chat.show_settings then
470-
return
470+
return util.notify("Adapter can't be changed when `display.chat.show_settings = true`", vim.log.levels.WARN)
471471
end
472472

473473
local function select_opts(prompt, conditional)

0 commit comments

Comments
 (0)