Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decay theme swaps cyan and red in emulated terminal #287

Open
jonathandw743 opened this issue Mar 1, 2024 · 2 comments
Open

Decay theme swaps cyan and red in emulated terminal #287

jonathandw743 opened this issue Mar 1, 2024 · 2 comments

Comments

@jonathandw743
Copy link

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:
Screenshot from 2024-03-01 21-16-31
In one dark:
Screenshot from 2024-03-01 21-15-28
In decay before saving and exiting (before the changes have full taken effect):
Screenshot from 2024-03-01 21-18-20
In decay after saving and exiting (so the changes have taken effect):
Screenshot from 2024-03-01 21-19-17

Desktop (please complete the following information):

  • Ubuntu 22.04
  • Zshell
  • 0.9.5
@siduck siduck transferred this issue from NvChad/NvChad Mar 2, 2024
@jonathandw743
Copy link
Author

I've also checked this with echoing some text in ANSI codes and 31 gives cyan and 36 gives red

@rseragon
Copy link

rseragon commented Mar 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants