Skip to content

Commit

Permalink
Improve Treesitter heading highlighting for Markdown (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWiegandt authored May 29, 2023
1 parent 2eace84 commit 15aac8c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lua/rose-pine/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,20 @@ function M._load(options)
h('@lsp.typemod.string.injected', { link = '@string' })
h('@lsp.typemod.variable.injected', { link = '@variable' })

-- nvim-treesitter Markdown Headings
h('@text.title.1.markdown', { link = 'markdownH1' })
h('@text.title.1.marker.markdown', { link = 'markdownH1Delimiter' })
h('@text.title.2.markdown', { link = 'markdownH2' })
h('@text.title.2.marker.markdown', { link = 'markdownH2Delimiter' })
h('@text.title.3.markdown', { link = 'markdownH3' })
h('@text.title.3.marker.markdown', { link = 'markdownH3Delimiter' })
h('@text.title.4.markdown', { link = 'markdownH4' })
h('@text.title.4.marker.markdown', { link = 'markdownH4Delimiter' })
h('@text.title.5.markdown', { link = 'markdownH5' })
h('@text.title.5.marker.markdown', { link = 'markdownH5Delimiter' })
h('@text.title.6.markdown', { link = 'markdownH6' })
h('@text.title.6.marker.markdown', { link = 'markdownH6Delimiter' })

-- vim.lsp.buf.document_highlight()
h('LspReferenceText', { bg = p.highlight_med })
h('LspReferenceRead', { bg = p.highlight_med })
Expand Down

0 comments on commit 15aac8c

Please sign in to comment.