github-nvim-theme
github-nvim-theme copied to clipboard
customize markdown code block highlighting
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!
Try with the markdownTSLiteral
highlight if you are using treesiitter.
require('github-theme').setup({
dev = true,
overrides = function(c)
return {
markdownTSLiteral = { bg = "#fb94ff" },
}
end
})
Closing due to inactivity. Can reopen later.