josean-dev / dev-environment-files

2.98k stars 800 forks source link

Neovim Background Color Inconsistent with Alacritty and Tmux #66

Closed ababaiem closed 4 months ago

ababaiem commented 4 months ago

Description:

I've been experiencing an inconsistency, since the last Neovim update, where the background color in Neovim differs from the background color in my Alacritty terminal and tmux session.

Screenshot 2024-05-20 at 22 11 37

I suspect the issue might be related to the one of the configuration files.

ababaiem commented 4 months ago

it appears the culprit might be Neovim's termguicolors option. In order to resolve it, you just need to:

Modify the configuration file located at .config/nvim/lua/josean/core/options.lua at line 24 from true to false: Change

opt.termguicolors = true

into

opt.termguicolors = false

Save the changes to the configuration file and restart Neovim for the changes to take effect.

Screenshot 2024-05-20 at 22 33 54