From 5f4c6b1cdcaeb9ebb94c955cb1c5e02cb8ff960b Mon Sep 17 00:00:00 2001 From: glepnir Date: Fri, 1 May 2020 14:49:47 +0800 Subject: [PATCH] add an option to disable or enable thinkvim custom color --- core/core.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/core.vim b/core/core.vim index 9e10fcdb..1707ea31 100644 --- a/core/core.vim +++ b/core/core.vim @@ -4,6 +4,8 @@ let g:thinkvim_version = "2.5.2" let g:thinkvim_disable_mappings = 0 " disable some plugins keymap let g:thinkvim_disable_pmaping = [] +" Load thinkvim provide color config +let g:thinkvim_load_color = 1 if &compatible " vint: -ProhibitSetNoCompatible @@ -70,7 +72,11 @@ call utils#source_file($VIM_PATH,'keybinds/leaderkey.vim') " Initialize user favorite colorscheme call theme#init() -call utils#source_file($VIM_PATH,'core/color.vim') + +" Load thinkvim custom color +if g:thinkvim_load_color + call utils#source_file($VIM_PATH,'core/color.vim') +endif " Generate coc-settings.json call utils#generate_coc_json()