diff options
author | Jose M. Murinello <jm.murinello@gmail.com> | 2019-07-17 03:17:51 +0900 |
---|---|---|
committer | Arctic Ice Studio <development@arcticicestudio.com> | 2019-07-16 20:17:51 +0200 |
commit | 73b3d340a735a2b6915f62a8904d6521251375cd (patch) | |
tree | c9f289d89374bb877072e1e0c5e6579aa8d261a9 | |
parent | 81d80e4a978aaab77e930b094bfb6780f695b438 (diff) | |
download | nord-vim-73b3d340a735a2b6915f62a8904d6521251375cd.tar.gz |
Uniform status lines config for bundled airline and lightline themes (#169)
The included theme bundles have not supported the "uniform status line" feature (GH-58), which allows to change the background color of the status bar (StatusLine) group to `nord3`.
Related to GH-58
Resolves GH-168
-rwxr-xr-x | autoload/airline/themes/nord.vim | 6 | ||||
-rwxr-xr-x | autoload/lightline/colorscheme/nord.vim | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/autoload/airline/themes/nord.vim b/autoload/airline/themes/nord.vim index 022f146..d82ef66 100755 --- a/autoload/airline/themes/nord.vim +++ b/autoload/airline/themes/nord.vim @@ -80,7 +80,11 @@ let g:airline#themes#nord#palette.visual.airline_error = s:VError let s:IAMain = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] let s:IARight = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] -let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term] +if g:nord_uniform_status_lines == 0 + let s:IAMiddle = [s:nord5_gui, s:nord1_gui, s:nord5_term, s:nord1_term] +else + let s:IAMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] +endif let s:IAWarn = [s:nord1_gui, s:nord13_gui, s:nord3_term, s:nord13_term] let s:IAError = [s:nord0_gui, s:nord11_gui, s:nord1_term, s:nord11_term] let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle) diff --git a/autoload/lightline/colorscheme/nord.vim b/autoload/lightline/colorscheme/nord.vim index 62f8ae2..f911f92 100755 --- a/autoload/lightline/colorscheme/nord.vim +++ b/autoload/lightline/colorscheme/nord.vim @@ -32,7 +32,7 @@ let s:p.normal.warning = [ [ s:nord1, s:nord13 ] ] let s:p.normal.error = [ [ s:nord1, s:nord11 ] ] let s:p.inactive.left = [ [ s:nord1, s:nord8 ], [ s:nord5, s:nord1 ] ] -let s:p.inactive.middle = [ [ s:nord5, s:nord1 ] ] +let s:p.inactive.middle = g:nord_uniform_status_lines == 0 ? [ [ s:nord5, s:nord1 ] ] : [ [ s:nord5, s:nord3 ] ] let s:p.inactive.right = [ [ s:nord5, s:nord1 ], [ s:nord5, s:nord1 ] ] let s:p.insert.left = [ [ s:nord1, s:nord6 ], [ s:nord5, s:nord1 ] ] |