mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
Fix E254 when spacevim startup
This issue only happened in vim, and works well in neovim. ``` Error detected while processing /home/wsdjeg/SpaceVim/SpaceVim/config/general.vim: line 29: E254: Cannot allocate color 246 ```
This commit is contained in:
parent
cefdc6f9c4
commit
17a6a5c24f
@ -4,6 +4,17 @@ exe 'set wildignore+=' . g:spacevim_wildignore
|
||||
if has('filterpipe')
|
||||
set noshelltemp
|
||||
endif
|
||||
if g:spacevim_enable_guicolors == 1
|
||||
if !has('nvim') && has('patch-7.4.1770')
|
||||
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||
endif
|
||||
if exists('+termguicolors')
|
||||
set termguicolors
|
||||
elseif exists('+guicolors')
|
||||
set guicolors
|
||||
endif
|
||||
endif
|
||||
if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=# '' "{{{
|
||||
try
|
||||
exec 'set background=' . g:spacevim_colorscheme_bg
|
||||
@ -20,14 +31,3 @@ endif
|
||||
if !empty(g:spacevim_guifont)
|
||||
exe 'set guifont=' . g:spacevim_guifont
|
||||
endif
|
||||
if g:spacevim_enable_guicolors == 1
|
||||
if !has('nvim') && has('patch-7.4.1770')
|
||||
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||
endif
|
||||
if exists('+termguicolors')
|
||||
set termguicolors
|
||||
elseif exists('+guicolors')
|
||||
set guicolors
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user