From 4df4359bbf33fbb954236a3729673d664f7b3dfd Mon Sep 17 00:00:00 2001 From: Anton Rybianov Date: Wed, 31 Jul 2024 01:29:54 +0300 Subject: [PATCH] Use cursorline_hl_group from sign --- lua/statuscol/builtin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/statuscol/builtin.lua b/lua/statuscol/builtin.lua index 9febdbf..5b18d62 100644 --- a/lua/statuscol/builtin.lua +++ b/lua/statuscol/builtin.lua @@ -73,7 +73,8 @@ function M.signfunc(args, segment) local signcount = #sss for i = 1, signcount do local s = sss[i] - text = text.."%#"..s.sign_hl_group.."#"..s.sign_text.."%*" + local hl_group = args.relnum == 0 and s.cursorline_hl_group or s.sign_hl_group + text = text.."%#"..hl_group.."#"..s.sign_text.."%*" end local pad = wss.padwidth - signcount if pad > 0 then