mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-24 04:21:26 -05:00
Compare commits
No commits in common. "2b81695301f0744bb884044991da9ce5d8d3d81c" and "5b5bfc3e963bd133d65ee33dc9502fa645bc5f9b" have entirely different histories.
2b81695301
...
5b5bfc3e96
5 changed files with 18 additions and 20 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 9e66d5c72dabfc6417c6015ed8991f3c4b504f7d
|
||||
Subproject commit 09bad640e4507885fa0e7035348c7854c531b3d6
|
|
@ -1 +1 @@
|
|||
Subproject commit 33a17515b79ddb10d750320fa994098bdc3e93ef
|
||||
Subproject commit 48128953949b51235ccada535f021a505fdaf3df
|
|
@ -1 +1 @@
|
|||
Subproject commit 30010a6b38cdba49df9e1a94b95700675d493e41
|
||||
Subproject commit 1d80fe5809205d8d0144a5e3e383e06b9514621f
|
|
@ -19,32 +19,30 @@ endif
|
|||
"declare the name of our theme
|
||||
let colors_name = "darkcloud"
|
||||
|
||||
"declare the term type
|
||||
if has("gui_running") || &termguicolors
|
||||
let g:term_colors_type = "gui"
|
||||
else
|
||||
set notermguicolors "required to use cterm colors
|
||||
let g:term_colors_type = "cterm"
|
||||
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 != ""
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "fg=" . a:fg
|
||||
if has("gui_running") || &termguicolors
|
||||
let l:term = "gui"
|
||||
else
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "fg=NONE"
|
||||
let l:term = "cterm"
|
||||
endif
|
||||
|
||||
if a:fg != ""
|
||||
exec "hi " . a:group . " " . l:term . "fg=" . a:fg
|
||||
else
|
||||
exec "hi " . a:group . " " . l:term . "fg=NONE"
|
||||
endif
|
||||
|
||||
if a:bg != ""
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "bg=" . a:bg
|
||||
exec "hi " . a:group . " " . l:term . "bg=" . a:bg
|
||||
else
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "bg=NONE"
|
||||
exec "hi " . a:group . " " . l:term . "bg=NONE"
|
||||
endif
|
||||
|
||||
if a:attr != ""
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "=" . a:attr
|
||||
exec "hi " . a:group . " " . l:term . "=" . a:attr
|
||||
else
|
||||
exec "hi " . a:group . " " . g:term_colors_type . "=NONE"
|
||||
exec "hi " . a:group . " " . l:term . "=NONE"
|
||||
endif
|
||||
endfun
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if has("gui_running") || &term != "linux" && &termguicolors
|
||||
if has("gui_running") || &termguicolors
|
||||
let g:cBlack = '#000000'
|
||||
let g:cWhite = '#ffffff'
|
||||
|
||||
|
@ -17,7 +17,7 @@ if has("gui_running") || &term != "linux" && &termguicolors
|
|||
|
||||
let g:cLightBg = '#303030'
|
||||
let g:cDarkBg = '#262626'
|
||||
elseif &t_Co >= 256 && &term != "linux"
|
||||
elseif &term != "linux" && &t_Co >= 256
|
||||
let g:cBlack = '0' "#000000
|
||||
let g:cWhite = '15' "#ffffff
|
||||
|
||||
|
|
Loading…
Reference in a new issue