toggle-corp / alacritty-colorscheme

Change colorscheme of alacritty with ease.
Apache License 2.0
343 stars 35 forks source link

Synchronisation with vim 8.2 fails #23

Closed ldesousa closed 3 years ago

ldesousa commented 3 years ago

I followed the instructions at PyPi to successfully install the programme. I would also like to synchronise vim. I started by installing the base16-vim plug-in, adding the following snipets to .vimrc:

" Base16 colour schemes
Plugin 'chriskempson/base16-vim'
if filereadable(expand("~/.vimrc_background"))
  let base16colorspace=256          " Remove this line if not necessary
  source ~/.vimrc_background
endif

After which :VundleInstall completed successfully.

Then I generated the ~/.vimrc_background file:

$ alacritty-colorscheme -C ~/.config/alacritty/colors -V apply base16-tomorrow-night-256.yml

$ cat ~/.vimrc_background 
if !exists('g:colors_name') || g:colors_name != 'base16-tomorrow-night-256'
  colorscheme base16-tomorrow-night-256

But then vim complains at startup:

$ vim
Error detected while processing /home/duque004/.vimrc[51]../home/duque004/.vimrc_background:
line    2:
E185: Cannot find color scheme 'base16-tomorrow-night-256'
Press ENTER or type command to continue

It looks some configuration step is missing, but I do not know which.

Thank you.

tnagorra commented 3 years ago

Looks like vim plugin chriskempson/base16-vim does not have the colorscheme base16-tomorrow-night-256

tnagorra commented 3 years ago

Closing this issue as the theme is not included in base16-vim