base46
base46 copied to clipboard
Decay theme swaps cyan and red in emulated terminal
Describe the bug When I use the decay theme, the red and cyan colours in the emulated terminal are swapped
To Reproduce Steps to reproduce the behavior: 1.clone nvchad 2. go to custom/chadrc.lua 3. change M.ui.theme to "decay" 4. save and exit vim 5. go into vim and open an emulated terminal 6. the cyan and red in the terminal will be swapped
Screenshots
My terminal outside of neovim:
In one dark:
In decay before saving and exiting (before the changes have full taken effect):
In decay after saving and exiting (so the changes have taken effect):
Desktop (please complete the following information):
- Ubuntu 22.04
- Zshell
- 0.9.5
I've also checked this with echoing some text in ANSI codes and 31 gives cyan and 36 gives red
I've been facing the same issue. After going through few issues of nvim-treesitter repo, apparently the @constructor
group seems to have a higher priority leading to the overriding of the colors nvim-treesitter/2207.
One hot-fix as of now is to redefine the group in your highlights.lua
file. Something like this:
M.override = {
-- Other overrides
["@constructor"] = {
fg = "blue" -- Change color to your liking
}
}
Furthermore, I've only noticed this in the Lua language. Other languages like C++, Python don't seem to have this issue.