mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
chore!: match heading prefix to text
This commit is contained in:
parent
5329dbb5d0
commit
587d0ba26f
4 changed files with 26 additions and 3 deletions
|
|
@ -21,7 +21,6 @@ local config = {
|
|||
-- ['function'] = '',
|
||||
-- method = '',
|
||||
|
||||
heading_prefix = palette.subtle,
|
||||
---@type string|table<string, string>
|
||||
headings = {
|
||||
h1 = palette.iris,
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ local theme = {
|
|||
Constant = { fg = p.gold },
|
||||
Debug = { fg = p.rose },
|
||||
Define = { fg = p.iris },
|
||||
Delimiter = { fg = config.colors.heading_prefix },
|
||||
Delimiter = { fg = p.subtle },
|
||||
Error = { fg = p.love },
|
||||
Exception = { fg = p.pine },
|
||||
Float = { fg = p.gold },
|
||||
|
|
@ -141,6 +141,19 @@ local theme = {
|
|||
htmlTagN = { fg = p.text },
|
||||
htmlTagName = { fg = p.foam },
|
||||
|
||||
markdownH1 = { fg = config.colors.headings.h1, style = 'bold' },
|
||||
markdownH1Delimiter = { fg = config.colors.headings.h1 },
|
||||
markdownH2 = { fg = config.colors.headings.h2, style = 'bold' },
|
||||
markdownH2Delimiter = { fg = config.colors.headings.h2 },
|
||||
markdownH3 = { fg = config.colors.headings.h3, style = 'bold' },
|
||||
markdownH3Delimiter = { fg = config.colors.headings.h3 },
|
||||
markdownH4 = { fg = config.colors.headings.h4, style = 'bold' },
|
||||
markdownH4Delimiter = { fg = config.colors.headings.h4 },
|
||||
markdownH5 = { fg = config.colors.headings.h5, style = 'bold' },
|
||||
markdownH5Delimiter = { fg = config.colors.headings.h5 },
|
||||
markdownH6 = { fg = config.colors.headings.h6, style = 'bold' },
|
||||
markdownH6Delimiter = { fg = config.colors.headings.h6 },
|
||||
markdownDelimiter = { fg = p.subtle },
|
||||
markdownLinkText = { fg = p.iris, style = 'underline' },
|
||||
markdownUrl = { fg = p.iris, style = 'underline' },
|
||||
mkdCode = { fg = p.foam, style = maybe_italic },
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ vim.g.rose_pine_colors = {
|
|||
info = p.foam,
|
||||
warn = p.gold,
|
||||
error = p.love,
|
||||
heading_prefix = p.subtle
|
||||
|
||||
-- Or set all headings to one colour: `headings = p.text`
|
||||
headings = {
|
||||
h1 = p.iris,
|
||||
|
|
|
|||
11
test.md
Normal file
11
test.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Test
|
||||
|
||||
## Test
|
||||
|
||||
### Test
|
||||
|
||||
#### Test
|
||||
|
||||
##### Test
|
||||
|
||||
###### Test
|
||||
Loading…
Add table
Add a link
Reference in a new issue