From 73b3d340a735a2b6915f62a8904d6521251375cd Mon Sep 17 00:00:00 2001 From: "Jose M. Murinello" Date: Wed, 17 Jul 2019 03:17:51 +0900 Subject: 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 --- autoload/airline/themes/nord.vim | 6 +++++- 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 ] ] -- cgit v1.2.3-70-g09d2