Incorporate the initialisation step
From now on, the user will have to set the 'termguicolors' option, if he/she is not using the GUI. Plus the version of Vim must be greater than '580'.
This commit is contained in:
+17
-3
@@ -15,10 +15,24 @@
|
||||
" Maintainer: Ludovic Koenig <ludovic.koenig@gmail.com>
|
||||
" License: MIT
|
||||
"
|
||||
" Bootstrap {{{
|
||||
" Initialisation {{{
|
||||
|
||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||
finish
|
||||
endif
|
||||
|
||||
if v:version > 580
|
||||
set background=dark
|
||||
highlight clear
|
||||
if exists('syntax_on')
|
||||
syntax reset
|
||||
endif
|
||||
else
|
||||
finish
|
||||
endif
|
||||
|
||||
let g:colors_name = 'odyssey'
|
||||
|
||||
" TODO Improve the bootstrap process ;-)
|
||||
set termguicolors
|
||||
let s:colors = {}
|
||||
|
||||
" }}}
|
||||
|
||||
Reference in New Issue
Block a user