Closed neverfox closed 6 years ago
please read :h g:spacevim_colorscheme
I did. I know I can hardcode the value (say, base16-nord) and it works (except for the powerline bar), but what I'm asking is if there's a way to set the value dynamically. If this were not spacevim, I would do the following:
base16_darktooth
. base16-shell produces the file ~/.vimrc_background
:
if !exists('g:colors_name') || g:colors_name != 'base16-darktooth'
colorscheme base16-darktooth
endif
~/.vimrc
:
if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256
source ~/.vimrc_background
endif
I'm wondering if there is a way to leverage the .vimrc_background file to set g:spacevim_colorscheme
. I was hoping against hope that it would just work but that was based on a bad assumption that Spacevim might respect a .vimrc file and furthermore set g:spacevim_colorscheme
based on mere colorscheme
.
The solution might be to use the fact that base16-shell also sets the environment variable BASE16_THEME
. Is there a way to reference that when setting g:spacevim_colorscheme
?
Figured it out.
let g:spacevim_colorscheme = 'base16-' . $BASE16_THEME
nice!
How would one do this in the new .toml based settings file?
Expected behavior, english is recommend
Changing terminal colors with base16-shell and base16-vim plugin installed should change spacevim colorsheme.
Environment Information
The reproduce ways from Vim starting (Required!)
chriskempson/base16-vim
the spacevim way. i.e.g:spacevim_custom_plugins = [['chriskempson/base16-vim']]
Now, I didn't expect this to work because spacevim doesn't (I believe?) use .vimrc or if it does, it overrides the colorscheme by default. So really I'm asking if there's a way to configure spacevim to use the .vimrc_background file that base16-shell produces dynamically to set the colorscheme using those provided by base16-vim.
Output of the
:SPDebugInfo!
SpaceVim Options :
SpaceVim Health checking :
SpaceVim clipboard support check report: Checking +clipboard: SUCCEED! SpaceVim environment check report: Current progpath: nvim(/usr/local/Cellar/neovim/0.2.2_1/bin/nvim) version: 800 OS: OSX [shell, shellcmdflag, shellslash]: ['zsh', '-c', 0] SpaceVim lua support check report: Checking +lua: Failed : Known issue, neovim do not support lua now. SpaceVim python support check report: Checking +python3: SUCCEED! Checking +python: SUCCEED!
SpaceVim runtime log :
Screenshots
If you have any screenshots for this issue please upload here. BTW you can use https://asciinema.org/ for recording video in terminal.