sainnhe / gruvbox-material

Gruvbox with Material Palette
MIT License
1.96k stars 166 forks source link

Change Treesitter TSPunctSpecial (issue with Latex) #81

Closed lambtho12 closed 3 years ago

lambtho12 commented 3 years ago

The current value for nvim-treesitter's TSPunctSpecial is set to foreground color (fg).

This is problematic when working on latex (.tex) documents, as nvim-treesitter defines the command \item as special punctuation. Therefore in the following example

\begin{itemize}
\item My first item
\item My second item
\item My third item
\end{itemize}

the commands are not different than the plain text.

I am not sure if this would be considered a big deal to change it here, or check with treesitter if the \item command should be associated to something else than special punctuation.

Note that this issue is specific to gruvbox-material. I tested several other themes (built-in neovim) and none showed the same issue.

I think that the color Blue may fit here, as it is almost not used in any other treesitter highlight groups.

sainnhe commented 3 years ago

Should be fixed now.