NvChad / base46

NvChad's base46 theme plugin with caching ( Total re-write )
Other
207 stars 201 forks source link

Decay theme swaps cyan and red in emulated terminal #287

Open jonathandw743 opened 8 months ago

jonathandw743 commented 8 months ago

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

  1. go to custom/chadrc.lua
  2. change M.ui.theme to "decay"
  3. save and exit vim
  4. go into vim and open an emulated terminal
  5. 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):

jonathandw743 commented 8 months ago

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

rseragon commented 8 months ago

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.