Skip to content

White non-bold text is displayed as black in neovim terminal #2134

@grimerssy

Description

@grimerssy

I use Alacritty terminal and when I start lazygit normally everything displays fine, but when I'm inside neovim and use toggleterm or native nvim terminal, some of the text blends in with the background. However, when I do the same thing and call lazygit from neovim, but in another terminal (in this case - Warp), everythings displays just fine. Also, when "invisible" text is hovered, it turns bold and becomes white.

Here is my lazygit config.yml:

gui:
  theme:
    activeBorderColor:
      - blue
      - bold
    inactiveBorderColor:
      - '#576270'
    optionsTextColor:
      - blue
    selectedLineBgColor:
      - '#2B323D'
    selectedRangeBgColor:
      - '#2B323D'
    cherryPickedCommitBgColor:
      - cyan
    cherryPickedCommitFgColor:
      - blue
    unstagedChangesColor:
      - red

  showFileTree: true
  showListFooter: false
  showRandomTip: false
  showBottomLine: false
  showCommandLog: true
  showIcons: true

disableStartupPopups: true

notARepository: 'skip'

keybinding:
  universal:
    return: 'q'

os:
  editCommand: 'nvim'

How it looks normally:
Screenshot 2022-08-24 at 23 15 26

How it looks inside neovim:
Screenshot 2022-08-24 at 23 27 44

Versions:
MacOS: Monterey 12.4
Alacritty: 0.10.1
Neovim: 0.7.2
Lazygit: 0.35

Is there a way to fix this via configuration? I did not find any of highlight groups that might affect that behaviour.
Note: I tried using both true and false as gui.theme.lightTheme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions