wal.vim icon indicating copy to clipboard operation
wal.vim copied to clipboard

problem with lightline

Open pasau opened this issue 7 years ago • 7 comments

Hi, i have trouble using the wal.vim lightline colorscheme

i add this in my .vimrc:

let g:lightline = {
			\ 'colorscheme': 'wal',
			\ }

and i get the following error:

Error detected while processing function lightline#update[3]..lightline#colorscheme[18]..lightline#highlight:
line   18:
E254: Cannot allocate color guibg=
Error detected while processing function lightline#update:
line    3:
E171: Missing :endif

If i change the content of wal.vim/autoload/lightline/colorscheme/wal.vim to the content of another random lightline colorscheme and replacing the word "wal" to the name of the other file, i don't get any problem

pasau avatar Mar 08 '18 01:03 pasau

Same here. I'm trying to look into the code to figure this out. Check the lightline#highlight function in the file lightline.vim. There are these guibg, which I reckon are background gui something. Let me know if you have any leads. Will look into this further later.

arjunramaswami avatar Mar 15 '18 14:03 arjunramaswami

I can't reproduce this, the lightline theme works fine for me. Can you guys send me your vimrc files?

dylanaraps avatar Mar 15 '18 21:03 dylanaraps

Here, I changed the lightline's colorscheme to wal.

arjunramaswami avatar Mar 17 '18 11:03 arjunramaswami

I realize this is an old issue, but I also couldn't reproduce the problem. However, I have forked this project on Gitlab, where I completely overhauled the Lightline theme. It's much different than than @dylanaraps version here, but you might like it. Get it here. Hopefully this one doesn't error out for you.

kingkobra87 avatar Jun 15 '18 15:06 kingkobra87

This seems to be related. I had the same issue, but replacing the empty color strings with hex color values fixes the problem.

Not sure what to put there instead of all black though. scrot

sieken avatar Jul 14 '18 15:07 sieken

Hi there, I was having the same issue as above on a new arch install. Wal.vim is working for vim's colorscheme, but not lightline (same errors as described above). Changing the values as 'sieken' did in the post before me did fix this though. Just thought I'd add this to the discussion. Happy to send any dotfiles if needed to troubleshoot. Aside from that, thanks for your awesome color scheming apps!

electricsoldier avatar Dec 10 '18 12:12 electricsoldier

I made a small tweak to the lightline wal theme here for those who are still struggling with it. It essentially just inherits the colors from the colorscheme.

kyokeunpark avatar Apr 13 '20 18:04 kyokeunpark