Mofiqul / vscode.nvim

Neovim/Vim color scheme inspired by Dark+ and Light+ theme in Visual Studio Code
MIT License
695 stars 111 forks source link

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

Open abzrg opened 1 year ago

abzrg commented 1 year ago

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 })

...