Skip to content

Commit

Permalink
feat(core.ui.calendar): highlight the current day differently
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 14, 2023
1 parent adf57a1 commit eada386
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/neorg/modules/core/ui/calendar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)
Expand Down

0 comments on commit eada386

Please sign in to comment.