Skip to content

Commit

Permalink
Add theme keys for (un)checked markup list items (helix-editor#6434)
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin authored and Schuyler Mortimer committed Jul 10, 2024
1 parent e0a0e8b commit 4a2804a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions book/src/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ We use a similar set of scopes as
- `list`
- `unnumbered`
- `numbered`
- `checked`
- `unchecked`
- `bold`
- `italic`
- `strikethrough`
Expand Down
3 changes: 3 additions & 0 deletions runtime/queries/markdown/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
(list_marker_parenthesis)
] @markup.list.numbered

(task_list_marker_checked) @markup.list.checked
(task_list_marker_unchecked) @markup.list.unchecked

(thematic_break) @punctuation.special

[
Expand Down
4 changes: 3 additions & 1 deletion runtime/themes/onelight.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@
"markup.list" = { fg = "light-blue" }
"markup.list.unnumbered" = { fg = "light-blue" }
"markup.list.numbered" = { fg = "light-blue" }
"markup.list.checked" = { fg = "green" }
"markup.list.unchecked" = { fg = "blue" }
"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
"markup.italic" = { fg = "purple", modifiers = ["italic"] }
"markup.strikethrough" = { modifiers = ["crossed_out"] }
"markup.strikethrough" = { fg = "red", modifiers = ["crossed_out"] }
"markup.link" = { fg = "light-blue" }
"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] }
"markup.link.text" = { fg = "light-blue" }
Expand Down

0 comments on commit 4a2804a

Please sign in to comment.