From e0d0fee233b5c54ad0659529b0a09287996d77e9 Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 3 Mar 2026 13:04:44 +0100 Subject: [PATCH] feat: hl marked lines with `ArtioMarkerLine` use `Visual` highlight group --- lua/artio/view.lua | 8 ++++++++ plugin/artio.lua | 1 + 2 files changed, 9 insertions(+) diff --git a/lua/artio/view.lua b/lua/artio/view.lua index f984fce..ab57d37 100644 --- a/lua/artio/view.lua +++ b/lua/artio/view.lua @@ -672,6 +672,14 @@ function View:showmatches() virt_text_pos = "overlay", priority = ext_priority.marker, }) + self:mark(nil, srow + i - 1, 0, { + hl_group = "ArtioMarkerLine", + hl_eol = true, + end_row = srow + i, + end_col = 0, + + priority = ext_priority.marker, + }) end if hls[i] then diff --git a/plugin/artio.lua b/plugin/artio.lua index f5bc4db..226b0e8 100644 --- a/plugin/artio.lua +++ b/plugin/artio.lua @@ -27,6 +27,7 @@ vim.api.nvim_create_autocmd({ "UIEnter", "ColorScheme" }, { hi("ArtioMatch", { link = "PmenuMatch" }) hi("ArtioMarker", { link = "DiagnosticWarn" }) + hi("ArtioMarkerLine", { link = "Visual" }) end, }) -- 2.51.2