diff --git a/lua/chatgpt/flows/chat/base.lua b/lua/chatgpt/flows/chat/base.lua index 0ce51ec..97aba91 100644 --- a/lua/chatgpt/flows/chat/base.lua +++ b/lua/chatgpt/flows/chat/base.lua @@ -580,6 +580,7 @@ function Chat:set_lines(start_idx, end_idx, strict_indexing, lines) if not self.is_streaming_response_lock then Utils.modify_buf(self.chat_window.bufnr, function(bufnr) vim.api.nvim_buf_set_lines(bufnr, start_idx, end_idx, strict_indexing, lines) + vim.api.nvim_exec_autocmds("TextChanged", { buffer = bufnr }) end) end end