p00f/nvim-ts-rainbow

Autoformatting breaks highlights

mrdgo opened this issue · 2 comments

mrdgo commented

I use jdtls and autocmds to format on save. When I save a file like this:
image

after saving and formatting, the highlights look like this:
image

As you can see, the third @ is highlighted just as the closing } was. In this example, it is not a huge problem, but in larger files, it tends to mess up a lot more.

Do I need to manually hook something to the formatting? This bugs me a bit tbh

p00f commented

Duplicate of #112

p00f commented

Status: No idea how to fix this, help wanted