base46 icon indicating copy to clipboard operation
base46 copied to clipboard

Decay theme swaps cyan and red in emulated terminal

Open jonathandw743 opened this issue 11 months ago • 2 comments

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

jonathandw743 avatar Mar 01 '24 21:03 jonathandw743

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

jonathandw743 avatar Mar 02 '24 13:03 jonathandw743

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.

rseragon avatar Mar 09 '24 18:03 rseragon