Skip to content

Commit

Permalink
feat(markdown): add rainbow headlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rewhile committed May 21, 2023
1 parent 8338b02 commit 3abc019
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
10 changes: 5 additions & 5 deletions lua/catppuccin/groups/integrations/headlines.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ function M.get()
Quote = { link = "@text.strong" },
CodeBlock = { bg = C.mantle },
Headline = { link = "Headline1" },
Headline1 = { bg = C.surface0, fg = C.green },
Headline2 = { bg = C.surface0, fg = C.blue },
Headline3 = { bg = C.surface0, fg = C.red },
Headline4 = { bg = C.surface0, fg = C.mauve },
Headline5 = { bg = C.surface0, fg = C.yellow },
Headline1 = { bg = C.surface0, fg = C.red },
Headline2 = { bg = C.surface0, fg = C.peach },
Headline3 = { bg = C.surface0, fg = C.yellow },
Headline4 = { bg = C.surface0, fg = C.green },
Headline5 = { bg = C.surface0, fg = C.sapphire },
Headline6 = { bg = C.surface0, fg = C.lavender },
}
end
Expand Down
12 changes: 6 additions & 6 deletions lua/catppuccin/groups/integrations/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function M.get()
markdownCode = { fg = C.flamingo },
markdownCodeBlock = { fg = C.flamingo },
markdownLinkText = { fg = C.blue, style = { "underline" } },
markdownH1 = { fg = C.lavender },
markdownH2 = { fg = C.mauve },
markdownH3 = { fg = C.green },
markdownH4 = { fg = C.yellow },
markdownH5 = { fg = C.pink },
markdownH6 = { fg = C.teal },
markdownH1 = { link = "rainbow1" },
markdownH2 = { link = "rainbow2" },
markdownH3 = { link = "rainbow3" },
markdownH4 = { link = "rainbow4" },
markdownH5 = { link = "rainbow5" },
markdownH6 = { link = "rainbow6" },
}
end

Expand Down
8 changes: 8 additions & 0 deletions lua/catppuccin/groups/integrations/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ If you want to stay on nvim 0.7, either disable the integration or pin catppucci

-- Language specific:

-- markdown
["@text.title.2.markdown"] = { link = "rainbow2" },
["@text.title.1.markdown"] = { link = "rainbow1" },
["@text.title.3.markdown"] = { link = "rainbow3" },
["@text.title.4.markdown"] = { link = "rainbow4" },
["@text.title.5.markdown"] = { link = "rainbow5" },
["@text.title.6.markdown"] = { link = "rainbow6" },

-- css
["@property.css"] = { fg = C.lavender },
["@property.id.css"] = { fg = C.blue },
Expand Down

0 comments on commit 3abc019

Please # to comment.