Closed dhruvmanila closed 3 years ago
Thanks!
Sorry it's my fault, I merged your PR without thinking carefully.
The syntax highlighting logic used in tree-sitter is different from it's in classic vim syntax. In tree-sitter, the keywords are not italicized, only variables are italicized.
So I reverted your commit.
I don't think that is true or I might be wrong, but I am using italic for the above mentioned groups for a long time. Terminal: kitty OS: macOS Font: JetBrains Mono
Lua:
Python:
You can use custom highlight groups in your vimrc
Yes, actually that's how I am using it:
highlight("TSKeyword", { force = true, link = "RedItalic" })
highlight("TSKeywordFunction", { force = true, link = "RedItalic" })
highlight("TSConditional", { force = true, link = "RedItalic" })
highlight("TSRepeat", { force = true, link = "RedItalic" })
highlight("TSException", { force = true, link = "RedItalic" })
If it's not possible, then no problem. Thanks for taking a look at it :)
Also, these are all already in italic if enabled: https://github.com/sainnhe/gruvbox-material/blob/82c696585d9d7a72596d34a755a6080836ae6561/colors/gruvbox-material.vim#L195-L205