Skip to content

Commit

Permalink
fix: Delete fold marks. Use TS to fold (block_quote).
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukibarns committed Jan 30, 2025
1 parent b5989e8 commit b61b107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/gp/dispatcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ local query = function(buf, provider, payload, handler, on_exit, callback)
elseif content ~= "" and type(content) == "string" then
if is_reasoning then
handler(qid, "\n", true)
handler(qid, "\n</details><!-- }}} -->\n\n", false)
handler(qid, "\n</details>\n\n", false)
is_reasoning = false
end
qt.response = qt.response .. content
Expand Down Expand Up @@ -339,7 +339,7 @@ local query = function(buf, provider, payload, handler, on_exit, callback)

if is_reasoning then
handler(qid, "\n", true)
handler(qid, "\n</details><!-- }}} -->\n\n", false)
handler(qid, "\n</details>\n\n", false)
is_reasoning = false
end

Expand Down
2 changes: 1 addition & 1 deletion lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ M.chat_respond = function(params)
-- Add CoT for DeepSeek-Reasoner
if agent_name == "DeepSeekReasoner" then
vim.api.nvim_buf_set_lines(buf, last_content_line + 3, last_content_line + 3, false,
{ "<details>", "<summary>CoT</summary><!-- {{{ -->", "" })
{ "<details>", "<summary>CoT</summary>", "" })
offset = 1
end

Expand Down

0 comments on commit b61b107

Please sign in to comment.