shades-of-purple.vim icon indicating copy to clipboard operation
shades-of-purple.vim copied to clipboard

E254: Cannot allocate color 0

Open KnBrckr opened this issue 3 years ago • 3 comments

Seeing the following when loading the color scheme:

Error detected while processing function <SNR>26_Hi[49]..<SNR>26_AddAnsiGroups: line 18: E254: Cannot allocate color 0 E254: Cannot allocate color 0

I've confirmed that the terminal can support true color.

Using vim 8.1 on Ubuntu in a WSL2 environment. Tested with and without tmux with no effect on the errors.

KnBrckr avatar Mar 03 '21 18:03 KnBrckr

I've isolated the problem to this part of shades-of-purple.vim:

if exists('*term_setansicolors')
  let g:terminal_ansi_colors = repeat([0], 16)

endif

When terminal_ansi_colors gets set in this way, I see these errors.

KnBrckr avatar Mar 24 '21 21:03 KnBrckr

I also receive this same error. Fresh install on macOS Big Sur. vim 8.2

KasonBraley avatar Jun 07 '21 05:06 KasonBraley

I get the same problem when I use FZF with crtl-P. if I comment this lines everthing works. but I am not sure the colorscheme is right inside de quickfix windows or the fzf window

eduardo-hyodo avatar Oct 20 '21 18:10 eduardo-hyodo