zenbones.nvim
zenbones.nvim copied to clipboard
Entirety of JS/TS tagged template literal is italic
Thanks for zenbones!
One thing I've noticed is that when using TS/JS files, the entirety of the contents of template literal strings are in italics which makes it a little difficult to read at times:

For comparison here is the same thing in nightfox
I wonder if this is an intentional choice or if there is a way of of doing something different in named template literals, where the content is often HTML templates as strings?
Thanks for reporting, that's definitely not intentional. Ideally, we want to handle tagged templates differently. Do you have an insight on how to achieve that? Maybe we have to adjust something upstream in https://github.com/nvim-treesitter/nvim-treesitter?
It seems it's treated as a normal string in nvim-treesitter. I wonder if we can adjust the query to treat it as TSStringSpecial
instead so that we can assign a more specific hl group (one that is without italic).
same for yaml:
Related to: https://github.com/nvim-treesitter/nvim-treesitter/issues/4157