embark-theme / vim

An ambitious theme for vim
https://embark-theme.github.io/
MIT License
648 stars 26 forks source link

Background is black #56

Closed zbraniecki closed 1 year ago

zbraniecki commented 1 year ago

I have nushell+zellij+alacritty+neovim config on MacOS and when I switch to this theme the background of my neovim becomes pitch black which makes the colors stand out very aggressively.

How do I fix that?

skbolton commented 1 year ago

This issue almost always comes down to 24bit color support.

  1. Your terminal must support it
  2. If you use a multiplexer you sometimes have to enable its support
  3. In (n)vim you then tell it to turn that on

For your setup

  1. Alacritty should support it out of the box so I think you are good there
  2. I have no idea on Zellij - I use tmux and could only give advice on setting up in that
  3. n(vim) you need to turn on guicolors vim.opt.termguicolors = true

If anything previous in the chain isn't configured there is nothing that nvim can do about it. My suggestion is look into people talking about this in the Zellij community and you should have your fix.

skbolton commented 1 year ago

In Zellij what is your $TERM environment variable set to?

skbolton commented 1 year ago

You can also run this helper script

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
bash 24-bit-color.sh

I found this script in an alacritty issue

I would run it at every level and make sure you get a smooth gradient of color. So alacritty without zellij, then in zellij, then in neovim without zellij, etc. It should show you where in the chain you have an issue.

zbraniecki commented 1 year ago

Setting set termguicolors in init.vim resolved the issue for me. Thank you!