From 29a85dd023a8919d3c55a99343d42917d07328a4 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sat, 23 Dec 2023 20:14:20 -0700 Subject: [PATCH] Fix vim colors in terminal --- vim/.vim/init_scripts/settings.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vim/.vim/init_scripts/settings.vim b/vim/.vim/init_scripts/settings.vim index d8e10dc..dd6ec1f 100644 --- a/vim/.vim/init_scripts/settings.vim +++ b/vim/.vim/init_scripts/settings.vim @@ -139,15 +139,16 @@ command! Light3 :colo base16-atelier-estuary-light | FH command! Light4 :colo base16-atelier-plateau-light | FH " Switch theme to match terminal ==== -if !has('termguicolors') - colo Default +if !has('termguicolors') || !has('gui_running') + colo default elseif executable('colo.sh') exec 'colo ' . system('colo.sh --colorscheme') + call FixHighlights() elseif executable(expand('~/.configs_pointer/bin/colo.sh')) exec 'colo ' . system('~/.configs_pointer/bin/colo.sh --colorscheme') + call FixHighlights() else echom "Using fallback color scheme" Dark + call FixHighlights() endif - -call FixHighlights()