Don't apply the colorscheme in a vterm

This commit is contained in:
Kevin MacMartin 2023-08-17 16:17:46 -04:00
parent 05f8ed6013
commit f97caa57d5
2 changed files with 23 additions and 19 deletions

View file

@ -117,22 +117,24 @@ endif
"ligtline theme {{{
let s:p = { 'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {} }
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 ]]
let s:p.inactive.right = [[ g:cLightGrayFg, g:cDarkGrayBg ], [ g:cLightGrayFg, g:cLightGrayBg ], [ g:cLightGrayFg, g:cDarkGrayBg ]]
if &term != "linux"
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 ]]
let s:p.inactive.right = [[ g:cLightGrayFg, g:cDarkGrayBg ], [ g:cLightGrayFg, g:cLightGrayBg ], [ g:cLightGrayFg, g:cDarkGrayBg ]]
let s:p.insert.left = [[ g:cRed, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.replace.left = [[ g:cLightGrayBg, g:cRed ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.visual.left = [[ g:cYellow, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.insert.left = [[ g:cRed, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.replace.left = [[ g:cLightGrayBg, g:cRed ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.visual.left = [[ g:cYellow, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]
let s:p.normal.middle = [[ g:cLightText, g:cLightGrayBg ]]
let s:p.tabline.left = [[ g:cLightText, g:cDarkGrayBg ]]
let s:p.tabline.tabsel = [[ g:cLightText, g:cLightGrayBg ]]
let s:p.tabline.middle = [[ g:cDarkGrayBg, g:cGray ]]
let s:p.tabline.right = copy(s:p.normal.right)
let s:p.normal.error = [[ g:cRed, g:cLightGrayBg ]]
let s:p.normal.warning = [[ g:cYellow, g:cLightGrayBg ]]
let s:p.normal.middle = [[ g:cLightText, g:cLightGrayBg ]]
let s:p.tabline.left = [[ g:cLightText, g:cDarkGrayBg ]]
let s:p.tabline.tabsel = [[ g:cLightText, g:cLightGrayBg ]]
let s:p.tabline.middle = [[ g:cDarkGrayBg, g:cGray ]]
let s:p.tabline.right = copy(s:p.normal.right)
let s:p.normal.error = [[ g:cRed, g:cLightGrayBg ]]
let s:p.normal.warning = [[ g:cYellow, g:cLightGrayBg ]]
let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
let g:lightline#colorscheme#darkcloud#palette = lightline#colorscheme#fill(s:p)
endif
"}}}

10
vimrc
View file

@ -29,11 +29,13 @@
let &runtimepath = printf('%s,%s/vim,%s/vim/after',&runtimepath,g:darkcloudpath,g:darkcloudpath)
"Load Colours
runtime colors/palette.vim
if &term != "linux"
runtime colors/palette.vim
"Load Colour Scheme:
colorscheme default "hack to fix vimrc colorschemes in some versions of vim
colorscheme darkcloud
"Load Colour Scheme:
colorscheme default "hack to fix vimrc colorschemes in some versions of vim
colorscheme darkcloud
endif
"Load Settings:
runtime config/settings.vim