From eada386cc79c122b648580de50b1f825b74a9627 Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Tue, 12 Jul 2022 20:04:08 +0200 Subject: [PATCH] feat(core.ui.calendar): highlight the current day differently --- lua/neorg/modules/core/ui/calendar.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/neorg/modules/core/ui/calendar.lua b/lua/neorg/modules/core/ui/calendar.lua index e5d6cdc8a..bb2fe900c 100644 --- a/lua/neorg/modules/core/ui/calendar.lua +++ b/lua/neorg/modules/core/ui/calendar.lua @@ -193,7 +193,12 @@ module.public = { beginning_of_weekday_extmark[1] + render_row, beginning_of_weekday_extmark[2] + (4 * render_column), { - virt_text = { { (day_of_month < 10 and "0" or "") .. tostring(day_of_month) } }, + virt_text = { + { + (day_of_month < 10 and "0" or "") .. tostring(day_of_month), + (tostring(day_of_month) == day and "TSTodo" or nil), + }, + }, virt_text_pos = "overlay", } )