ellisonleao / gruvbox.nvim

Lua port of the most famous vim colorscheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] TreeSitter compatability for LaTeX environments broken

average-sphere-spectrum-enjoyer opened this issue · comments

Describe the bug

Commit 99ddf57 of nvim-treesitter breaks the coloring of the "environments" in LaTeX. To reproduce the bug:

  1. Use a commit of nvim-treesitter newer than 99ddf57.
  2. Open a .tex file with \begin{environment} ... \end{environment}

An example could be the file bug.tex:

\begin{document}

hello world

\end{document}

It currently looks like (with transparent background):
incorrect

Expected behaviour

It should look something like this (this is what it looks like when using the parent commit of 99ddf57 - again, with transparent background):

correct

This has quite a big influence on the UX as one uses environments in LaTeX constantly. For a "bigger" example see the correct:
correct-full
and incorrect:
incorrect-full

Screenshots

It should work as..

Reading the commit message we get "Language-specific subcaptures should instead be added in user config or
a custom language plugin".
I don't know how treesitter and colorschemes work, but I guess it should be possible to simply copy the earlier @markup.environment to some builtin version?