[feat] Add basic support for IBM's watsonx code assistant (#2617)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Fabian Klopfer
2025-08-26 11:26:15 +02:00
committed by GitHub
parent 29111ac042
commit 11e457e56b
6 changed files with 502 additions and 113 deletions

View File

@@ -2543,7 +2543,7 @@ function Sidebar:create_input_container()
vim.keymap.del("n", "G", { buffer = self.containers.result.bufnr })
end)
if stop_opts.error ~= nil then
if stop_opts.error ~= nil and stop_opts.error ~= vim.NIL then
local msg_content = stop_opts.error
if type(msg_content) ~= "string" then msg_content = vim.inspect(msg_content) end
self:add_history_messages({