HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
490 stars 37 forks source link

[Bug]: delimiters only colored on startup #9

Closed tim-hilt closed 1 year ago

tim-hilt commented 1 year ago

Neovim version

0.9.1

Language affected

Lua

Query

No response

Strategy

No response

Description

When I open nvim, I see all delimiters colored as expected. However as soon as I type something, the delimiters are not colored automatically. Here's a screenshare of how that looks:

https://github.com/HiPhish/rainbow-delimiters.nvim/assets/16037579/2135c541-6fda-4090-b838-66bc1924e77d

You can find where I configure rainbow-delimiters here: https://github.com/tim-hilt/nvim/blob/29956421878f559581c3c6509b43810c12d97582/init.lua#L74-L76

I basically use the default configuration.

HiPhish commented 1 year ago

This is a duplicate of #2, please subscribe to that issue for updates. I am closing this one as duplicate.

There is something weird going on because I experience the problem on a per-file basis. The C++ highlight test file for example does not updated in real time, but if I create a minimal C++ file it works flawlessly. That makes this issue quite tricky.

In the meantime you can execute :edit, which will trigger a full re-draw. It's not real time, but it is better than nothing.

tim-hilt commented 1 year ago

Thanks for the information! I'll subscribe to the mentioned issue then.