feat: add custom highlight for visual mode status column

This commit is contained in:
2024-11-03 01:01:42 -04:00
parent 62551bb062
commit 5650e45945
+9
View File
@@ -181,6 +181,15 @@ function M.setup_mode_highlight()
set_hl(0, "SmoothCursor", { fg = bg_color })
sign_def("smoothcursor", { text = "" })
end
-- Define the custom highlight outside the function
local vis_bg_color = get_bg_color("CursorLineNr")
local vis_fg_color = get_bg_color("lualine_a_visual")
vim.api.nvim_set_hl(
0,
"StatusColumnVisualHighlight",
{ fg = vis_fg_color, bg = vis_bg_color }
)
end
--- Function to set up dashboard header highlight