From 18add4e7ae55ebecf66e097f88f0237796ba4e75 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Sun, 24 Jun 2018 20:39:10 +0200 Subject: Improve compatibility of airline theme with tmuxline.vim theme The "Nord airline.vim" (1) UI plugin theme now includes better support for the "tmuxline.vim" (2) plugin. Previously text shown in the main segment of the tmuxline, generated via the `:Tmuxline airline` command, caused a `bad colour: NONE` error or has been colorized using `nord0` which resulted in unreadable text due to a `nord3` background. This has been fixed by using `nord5` as foreground color. See GH-11 (3) which has been used as implementation reference that fixed the same incompatibility for the "lightline.vim" (4) plugin. References: (1) https://github.com/arcticicestudio/nord-vim/blob/develop/autoload/airline/themes/nord.vim (2) https://github.com/edkolev/tmuxline.vim (3) https://github.com/arcticicestudio/nord-vim/issues/11 (4) https://github.com/itchyny/lightline.vim GH-117 --- autoload/airline/themes/nord.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'autoload') diff --git a/autoload/airline/themes/nord.vim b/autoload/airline/themes/nord.vim index e072fe1..560d32a 100755 --- a/autoload/airline/themes/nord.vim +++ b/autoload/airline/themes/nord.vim @@ -44,25 +44,25 @@ let s:nord6_term = "15" let s:NMain = [s:nord1_gui, s:nord8_gui, s:nord1_term, s:nord8_term] let s:NRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:NMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:NMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] let g:airline#themes#nord#palette.normal = airline#themes#generate_color_map(s:NMain, s:NRight, s:NMiddle) let s:IMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord6_term] let s:IRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:IMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:IMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] let g:airline#themes#nord#palette.insert = airline#themes#generate_color_map(s:IMain, s:IRight, s:IMiddle) let s:RMain = [s:nord1_gui, s:nord14_gui, s:nord1_term, s:nord14_term] let s:RRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:RMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:RMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] let g:airline#themes#nord#palette.replace = airline#themes#generate_color_map(s:RMain, s:RRight, s:RMiddle) let s:VMain = [s:nord1_gui, s:nord7_gui, s:nord1_term, s:nord7_term] let s:VRight = [s:nord1_gui, s:nord9_gui, s:nord1_term, s:nord9_term] -let s:VMiddle = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] +let s:VMiddle = [s:nord5_gui, s:nord3_gui, s:nord5_term, s:nord3_term] let g:airline#themes#nord#palette.visual = airline#themes#generate_color_map(s:VMain, s:VRight, s:VMiddle) -let s:IAMain = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] -let s:IARight = [s:nord4_gui, s:nord3_gui, s:nord4_term, s:nord3_term] -let s:IAMiddle = [s:nord4_gui, s:nord1_gui, s:nord4_term, s:nord1_term] +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] let g:airline#themes#nord#palette.inactive = airline#themes#generate_color_map(s:IAMain, s:IARight, s:IAMiddle) -- cgit v1.2.3-70-g09d2