Closed akinsho closed 1 year ago
This might be solvable by adding a default = true
when linking although I don't know that it's right to be trying to link this group to a now deprecated highlight group 🤷🏾♂️
I don't know why I am doing any of this in the first place. It might be a leftover from the original plugin. I will see if I can just throw it all away.
I have now removed the offending code, please test the current master
.
LGTM thanks 👍🏾
Describe the bug
Whilst using this plugin the highlight for brackets that aren't being coloured using rainbow colours is set to the since deprecated
TSPuncBracket
highlight group. There appears to be a check to see if thehl_map
exists a check I think plugins used pre nvim0.7
or0.8
when these groups where deprecated but rather than just depending on the@punctation.bracket
or usingTSPunctBracket
the plugin seems to overriding a users settingshttps://github.com/HiPhish/nvim-ts-rainbow2/blob/3bfcb9a7dd55d106f2e8afd3dcaec1ac624db2db/lua/ts-rainbow/internal.lua#L85-L89
Steps to reproduce
This is visible whilst using the
local
strategy and moving through a file. The highlights for un highlighted regions is mutated toTSPunctBracket
. My colorscheme (which I develop) doesn't support theTS*
highlight groups as it doesn't target anything lower than 0.8 (being that it's days old)Expected behavior
Punctuation highlights should be left unchanged if not "rainbow-ed".
Screenshots
Without this plugin (brackets are a gray colour)
With this plugin (brackets are the same colour as the foreground)