shades-of-purple.vim
shades-of-purple.vim copied to clipboard
E254: Cannot allocate color 0
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.
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.
I also receive this same error. Fresh install on macOS Big Sur. vim 8.2
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