From 4a9fd65d02d646bc874ed8951e1e3b85fade8d27 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 17 Aug 2023 16:23:56 -0400 Subject: [PATCH] Fix lightline when no colorscheme is selected --- vim/config/plugins/lightline.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/config/plugins/lightline.vim b/vim/config/plugins/lightline.vim index 46588f0..53ba09b 100644 --- a/vim/config/plugins/lightline.vim +++ b/vim/config/plugins/lightline.vim @@ -61,8 +61,6 @@ function! TagbarStatusFunc(current, sort, fname, ...) abort endfunction let g:lightline = { - \ 'colorscheme': 'darkcloud', - \ \ 'component_function': { \ 'fugitive': 'LLFugitive', \ 'filename': 'LLFilename', @@ -118,6 +116,8 @@ endif let s:p = { 'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {} } if &term != "linux" + let g:lightline.colorscheme = 'darkcloud' + let s:p.normal.left = [[ g:cBlue, g:cDarkGrayBg ], [ g:cLightText, g:cLightGrayBg ]] let s:p.inactive.left = [[ g:cLightGrayFg, g:cDarkGrayBg ], [ g:cLightGrayFg, g:cLightGrayBg ]] let s:p.normal.right = [[ g:cLightText, g:cDarkGrayBg ], [ g:cLightText, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]