@@ -7,6 +7,10 @@ local M = {}
77--- @field public head ? string
88--- @field public row ? string
99
10+ --- @class UserCheckboxHighlights
11+ --- @field public unchecked ? string
12+ --- @field public checked ? string
13+
1014--- @class UserHeadingHighlights
1115--- @field public backgrounds ? string[]
1216--- @field public foregrounds ? string[]
@@ -16,6 +20,7 @@ local M = {}
1620--- @field public dash ? string
1721--- @field public code ? string
1822--- @field public bullet ? string
23+ --- @field public checkbox ? UserCheckboxHighlights
1924--- @field public table ? UserTableHighlights
2025--- @field public latex ? string
2126--- @field public quote ? string
@@ -24,6 +29,10 @@ local M = {}
2429--- @field public default ? integer
2530--- @field public rendered ? integer
2631
32+ --- @class UserCheckbox
33+ --- @field public unchecked ? string
34+ --- @field public checked ? string
35+
2736--- @class UserConfig
2837--- @field public markdown_query ? string
2938--- @field public inline_query ? string
@@ -32,6 +41,7 @@ local M = {}
3241--- @field public headings ? string[]
3342--- @field public dash ? string
3443--- @field public bullets ? string[]
44+ --- @field public checkbox ? UserCheckbox
3545--- @field public quote ? string
3646--- @field public conceal ? UserConceal
3747--- @field public fat_tables ? boolean
@@ -61,6 +71,9 @@ function M.setup(opts)
6171 (list_marker_star)
6272 ] @list_marker
6373
74+ (task_list_marker_unchecked) @checkbox_unchecked
75+ (task_list_marker_checked) @checkbox_checked
76+
6477 (block_quote (block_quote_marker) @quote_marker)
6578 (block_quote (paragraph (inline (block_continuation) @quote_marker)))
6679
@@ -77,6 +90,10 @@ function M.setup(opts)
7790 headings = { ' ' , ' ' , ' ' , ' ' , ' ' , ' ' },
7891 dash = ' —' ,
7992 bullets = { ' ●' , ' ○' , ' ◆' , ' ◇' },
93+ checkbox = {
94+ unchecked = ' ' ,
95+ checked = ' ' ,
96+ },
8097 quote = ' ┃' ,
8198 conceal = {
8299 default = vim .opt .conceallevel :get (),
@@ -98,6 +115,10 @@ function M.setup(opts)
98115 dash = ' LineNr' ,
99116 code = ' ColorColumn' ,
100117 bullet = ' Normal' ,
118+ checkbox = {
119+ unchecked = ' @markup.list.unchecked' ,
120+ checked = ' @markup.heading' ,
121+ },
101122 table = {
102123 head = ' @markup.heading' ,
103124 row = ' Normal' ,
0 commit comments