Skip to content

Commit 468c0c0

Browse files
committed
feat: highlight diagnostic message
1 parent 063cc44 commit 468c0c0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lua/quicker/display.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,19 @@ add_qf_highlights = function(info)
381381
}
382382
end
383383
vim.api.nvim_buf_set_extmark(qfbufnr, ns, i - 1, 0, mark)
384+
vim.api.nvim_buf_set_extmark(
385+
qfbufnr,
386+
ns,
387+
i - 1,
388+
line:find(EM_QUAD, 1, true) + EM_QUAD_LEN - 1,
389+
{
390+
hl_group = virt_text_highlight_map[item.type:upper()],
391+
end_col = line:len(),
392+
priority = 100,
393+
strict = false,
394+
invalidate = true,
395+
}
396+
)
384397
end
385398

386399
-- If we've been processing for too long, defer to preserve editor responsiveness

0 commit comments

Comments
 (0)