Skip to content

Commit 34ba322

Browse files
committed
feat: turn delimiter, no default hl_group for chat
1 parent a0ef166 commit 34ba322

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

lua/model/core/chat.lua

+2
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ function M.run_chat(opts)
300300
seg = segment.create_segment_at(#buf_lines - 1, #buf_lines[#buf_lines])
301301
end
302302

303+
seg.clear_hl()
304+
303305
local sayer = juice.sayer()
304306

305307
---@type StreamHandlers

lua/model/util/segment.lua

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ local function create_segment_at(row, col, bufnr, hl_group, join_undo)
203203
clear_hl = vim.schedule_wrap(function()
204204
local mark = get_details()
205205

206+
_hl_group = nil
206207
mark.details.hl_group = nil
207208
mark.details.id = _ext_id
208209

queries/mchat/highlights.scm

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
(chat_handler) @type
22
(system_instruction) @attribute
33
(reason_delimiter) @punctuation.delimiter
4+
(turn_delimiter) @punctuation.delimiter

0 commit comments

Comments
 (0)