Optixal/neovim-init.vim

Sometimes colors don't load automatically

adamwallace opened this issue · 1 comments

I noticed that when using zsh (at least using macOS) the background color remains the same as your terminal shell when you open up neovim, forcing you to force a reload by using ,e1 or opening then closing Goyo. This can be fixed by adding set t_ut= and moving color dracula near the bottom of your config. Why does it work? I have no idea. Probably something to do with disabling background color erase. Credit to @wendtl for finding this fix for me.

image
Within init.vim, there's a portion that sets the background to follow your terminal's color by default. Commenting it out will achieve the same effect you are looking for 👍