Fix lightline when no colorscheme is selected

This commit is contained in:
Kevin MacMartin 2023-08-17 16:23:56 -04:00
parent f97caa57d5
commit 4a9fd65d02

View file

@ -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 ]]