Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown Headings should be blue + Html Headings should not be bold #117

Open
abzrg opened this issue Feb 26, 2023 · 0 comments
Open

Markdown Headings should be blue + Html Headings should not be bold #117

abzrg opened this issue Feb 26, 2023 · 0 comments

Comments

@abzrg
Copy link

abzrg commented Feb 26, 2023

In a markdown buffer the following highlight groups are loaded

-- command mode
:filter /markdown/ hi

-- output:
markdownHeadingDelimiter xxx guifg=#569cd6

markdownH1     xxx links to htmlH1
markdownH2     xxx links to htmlH2
markdownH3     xxx links to htmlH3
markdownH4     xxx links to htmlH4
markdownH5     xxx links to htmlH5
markdownH6     xxx links to htmlH6

markdownHeadingRule xxx links to markdownRule
markdownH1Delimiter xxx links to markdownHeadingDelimiter
markdownH2Delimiter xxx links to markdownHeadingDelimiter
markdownH3Delimiter xxx links to markdownHeadingDelimiter
markdownH4Delimiter xxx links to markdownHeadingDelimiter
markdownH5Delimiter xxx links to markdownHeadingDelimiter
markdownH6Delimiter xxx links to markdownHeadingDelimiter
markdownHighlight_html xxx cleared
markdownHighlight_python xxx cleared
markdownHighlight_vim xxx cleared
markdownHighlight_cpp xxx cleared
markdownHighlight_c xxx cleared
markdownHighlight_sh xxx cleared

Highlight links starting from markdownH1:

markdownH1 -> htmlH1 -> Title (white and bold)

In VSCode, the headings (markdown) are blue, but in the colorscheme they are white. So markdownH1, markdownH2, ... should be blue. Further, html headings in VSCode are white and regular, but they are (white) bold (inheriting from Title) in the colorscheme. So, I propose add something similar to the following to the theme.lua

...

    -- Markdown
    ...
    hl(0, 'markdownH1', { fg = isDark and c.vscBlue, bold = true })
    hl(0, 'markdownH2', { fg = isDark and c.vscBlue, bold = true })
    hl(0, 'markdownH3', { fg = isDark and c.vscBlue, bold = true })
    hl(0, 'markdownH4', { fg = isDark and c.vscBlue, bold = true })
    hl(0, 'markdownH5', { fg = isDark and c.vscBlue, bold = true })
    hl(0, 'markdownH6', { fg = isDark and c.vscBlue, bold = true })

...

    -- HTML
    hl(0, 'htmlH1', { bold = false })
    hl(0, 'htmlH2', { bold = false })
    hl(0, 'htmlH3', { bold = false })
    hl(0, 'htmlH4', { bold = false })
    hl(0, 'htmlH5', { bold = false })
    hl(0, 'htmlH6', { bold = false })

...

  • I'm using the latest version of this theme
  • I'm not using treesitter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant