mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-24 04:21:26 -05:00
Compare commits
2 commits
5b5bfc3e96
...
2b81695301
Author | SHA1 | Date | |
---|---|---|---|
|
2b81695301 | ||
|
6d88ffd6a6 |
5 changed files with 19 additions and 17 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 09bad640e4507885fa0e7035348c7854c531b3d6
|
Subproject commit 9e66d5c72dabfc6417c6015ed8991f3c4b504f7d
|
|
@ -1 +1 @@
|
||||||
Subproject commit 48128953949b51235ccada535f021a505fdaf3df
|
Subproject commit 33a17515b79ddb10d750320fa994098bdc3e93ef
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1d80fe5809205d8d0144a5e3e383e06b9514621f
|
Subproject commit 30010a6b38cdba49df9e1a94b95700675d493e41
|
|
@ -19,30 +19,32 @@ endif
|
||||||
"declare the name of our theme
|
"declare the name of our theme
|
||||||
let colors_name = "darkcloud"
|
let colors_name = "darkcloud"
|
||||||
|
|
||||||
"sets the highlighting for the given group | format: s:C("Name","Foreground","Background","Style")
|
"declare the term type
|
||||||
fun! s:C(group, fg, bg, attr)
|
|
||||||
if has("gui_running") || &termguicolors
|
if has("gui_running") || &termguicolors
|
||||||
let l:term = "gui"
|
let g:term_colors_type = "gui"
|
||||||
else
|
else
|
||||||
let l:term = "cterm"
|
set notermguicolors "required to use cterm colors
|
||||||
|
let g:term_colors_type = "cterm"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
"sets the highlighting for the given group | format: s:C("Name","Foreground","Background","Style")
|
||||||
|
fun! s:C(group, fg, bg, attr)
|
||||||
if a:fg != ""
|
if a:fg != ""
|
||||||
exec "hi " . a:group . " " . l:term . "fg=" . a:fg
|
exec "hi " . a:group . " " . g:term_colors_type . "fg=" . a:fg
|
||||||
else
|
else
|
||||||
exec "hi " . a:group . " " . l:term . "fg=NONE"
|
exec "hi " . a:group . " " . g:term_colors_type . "fg=NONE"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:bg != ""
|
if a:bg != ""
|
||||||
exec "hi " . a:group . " " . l:term . "bg=" . a:bg
|
exec "hi " . a:group . " " . g:term_colors_type . "bg=" . a:bg
|
||||||
else
|
else
|
||||||
exec "hi " . a:group . " " . l:term . "bg=NONE"
|
exec "hi " . a:group . " " . g:term_colors_type . "bg=NONE"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if a:attr != ""
|
if a:attr != ""
|
||||||
exec "hi " . a:group . " " . l:term . "=" . a:attr
|
exec "hi " . a:group . " " . g:term_colors_type . "=" . a:attr
|
||||||
else
|
else
|
||||||
exec "hi " . a:group . " " . l:term . "=NONE"
|
exec "hi " . a:group . " " . g:term_colors_type . "=NONE"
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if has("gui_running") || &termguicolors
|
if has("gui_running") || &term != "linux" && &termguicolors
|
||||||
let g:cBlack = '#000000'
|
let g:cBlack = '#000000'
|
||||||
let g:cWhite = '#ffffff'
|
let g:cWhite = '#ffffff'
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ if has("gui_running") || &termguicolors
|
||||||
|
|
||||||
let g:cLightBg = '#303030'
|
let g:cLightBg = '#303030'
|
||||||
let g:cDarkBg = '#262626'
|
let g:cDarkBg = '#262626'
|
||||||
elseif &term != "linux" && &t_Co >= 256
|
elseif &t_Co >= 256 && &term != "linux"
|
||||||
let g:cBlack = '0' "#000000
|
let g:cBlack = '0' "#000000
|
||||||
let g:cWhite = '15' "#ffffff
|
let g:cWhite = '15' "#ffffff
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue