Fix vim colors in terminal
This commit is contained in:
parent
1c448b04c4
commit
29a85dd023
1 changed files with 5 additions and 4 deletions
|
@ -139,15 +139,16 @@ command! Light3 :colo base16-atelier-estuary-light | FH
|
||||||
command! Light4 :colo base16-atelier-plateau-light | FH
|
command! Light4 :colo base16-atelier-plateau-light | FH
|
||||||
|
|
||||||
" Switch theme to match terminal ====
|
" Switch theme to match terminal ====
|
||||||
if !has('termguicolors')
|
if !has('termguicolors') || !has('gui_running')
|
||||||
colo Default
|
colo default
|
||||||
elseif executable('colo.sh')
|
elseif executable('colo.sh')
|
||||||
exec 'colo ' . system('colo.sh --colorscheme')
|
exec 'colo ' . system('colo.sh --colorscheme')
|
||||||
|
call FixHighlights()
|
||||||
elseif executable(expand('~/.configs_pointer/bin/colo.sh'))
|
elseif executable(expand('~/.configs_pointer/bin/colo.sh'))
|
||||||
exec 'colo ' . system('~/.configs_pointer/bin/colo.sh --colorscheme')
|
exec 'colo ' . system('~/.configs_pointer/bin/colo.sh --colorscheme')
|
||||||
|
call FixHighlights()
|
||||||
else
|
else
|
||||||
echom "Using fallback color scheme"
|
echom "Using fallback color scheme"
|
||||||
Dark
|
Dark
|
||||||
|
call FixHighlights()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call FixHighlights()
|
|
||||||
|
|
Loading…
Reference in a new issue