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,6 +117,7 @@ endif
"ligtline theme {{{ "ligtline theme {{{
let s:p = { 'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {} } let s:p = { 'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {} }
if &term != "linux"
let s:p.normal.left = [[ g:cBlue, g:cDarkGrayBg ], [ g:cLightText, g:cLightGrayBg ]] 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.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.normal.right = [[ g:cLightText, g:cDarkGrayBg ], [ g:cLightText, g:cLightGrayBg ], [ g:cLightText, g:cDarkGrayBg ]]
@ -135,4 +136,5 @@ endif
let s:p.normal.warning = [[ g:cYellow, 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
"}}} "}}}

2
vimrc
View file

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