github-nvim-theme icon indicating copy to clipboard operation
github-nvim-theme copied to clipboard

customize markdown code block highlighting

Open msvechla opened this issue 2 years ago • 1 comments

Hi and thanks for this awesome theme!

I was trying to customize the background color of fenced code blocks in markdown files via the following snippet in my init.lua:

require('github-theme').setup({
    dev = true,
    overrides = function(c)
        return {
          markdownCodeBlock = { bg = "#fb94ff" },
        }
    end
})

This however has no effect. I tried multiple things but could not get it working. Do you have any idea what I am doing wrong?

Thanks a lot for your help!

msvechla avatar Jun 23 '22 20:06 msvechla

Try with the markdownTSLiteral highlight if you are using treesiitter.

require('github-theme').setup({
    dev = true,
    overrides = function(c)
        return {
          markdownTSLiteral = { bg = "#fb94ff" },
        }
    end
})

ful1e5 avatar Jul 07 '22 09:07 ful1e5

Closing due to inactivity. Can reopen later.

ful1e5 avatar May 05 '23 09:05 ful1e5