Skip to content

Commit

Permalink
fix(highlights): Prefer newer tree-sitter highlights for creating colors
Browse files Browse the repository at this point in the history
  • Loading branch information
OXY2DEV committed Feb 9, 2025
1 parent aa8bdd7 commit c095a7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lua/markview/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH1", "@markup.heading.1.markdown", "@markup.heading" },
{ "@markup.heading.1.markdown", "@markup.heading", "markdownH1" },
"#D20F39",
"#F38BA8"
));
Expand Down Expand Up @@ -772,7 +772,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH2", "@markup.heading.2.markdown", "@markup.heading" },
{ "@markup.heading.2.markdown", "@markup.heading", "markdownH2" },
"#FAB387",
"#FE640B"
));
Expand Down Expand Up @@ -834,7 +834,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH3", "@markup.heading.3.markdown", "@markup.heading" },
{ "@markup.heading.3.markdown", "@markup.heading", "markdownH3" },
"#DF8E1D",
"#F9E2AF"
));
Expand Down Expand Up @@ -896,7 +896,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH4", "@markup.heading.4.markdown", "@markup.heading" },
{ "@markup.heading.4.markdown", "@markup.heading", "markdownH4" },
"#40A02B",
"#A6E3A1"
));
Expand Down Expand Up @@ -958,7 +958,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH5", "@markup.heading.5.markdown", "@markup.heading" },
{ "@markup.heading.5.markdown", "@markup.heading", "markdownH5" },
"#209FB5",
"#74C7EC"
));
Expand Down Expand Up @@ -1020,7 +1020,7 @@ highlights.dynamic = {
));
local h_fg = highlights.rgb_to_lab(highlights.get_property(
"fg",
{ "markdownH6", "@markup.heading.6.markdown", "@markup.heading" },
{ "@markup.heading.6.markdown", "@markup.heading", "markdownH6" },
"#7287FD",
"#B4BEFE"
));
Expand Down

0 comments on commit c095a7c

Please sign in to comment.