From dc476a01e0467cac74dba114a27f6b589ba7a314 Mon Sep 17 00:00:00 2001 From: Isaac Jurado Date: Wed, 24 Feb 2016 21:41:36 +0100 Subject: [PATCH] lucius: revert previous theme change while still fixing the tabline problem Using the "CursorLine" highlight style was not a good idea for the status line, because it conflicts when the cursor line is next to the status line of an inactive window. Fortunately, the tabline extension allows for specific color customization. This explicitly defines a color for a selected tab and a selected buffer. --- autoload/airline/themes/lucius.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/airline/themes/lucius.vim b/autoload/airline/themes/lucius.vim index d9ad39f..c6db8b6 100644 --- a/autoload/airline/themes/lucius.vim +++ b/autoload/airline/themes/lucius.vim @@ -40,7 +40,7 @@ function! airline#themes#lucius#refresh() let g:airline#themes#lucius#palette.visual.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning let g:airline#themes#lucius#palette.visual_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning - let s:IA = airline#themes#get_highlight('CursorLine') + let s:IA = airline#themes#get_highlight('StatusLineNC') let g:airline#themes#lucius#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA) let g:airline#themes#lucius#palette.inactive_modified = { \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ] @@ -50,6 +50,12 @@ function! airline#themes#lucius#refresh() \ 'red': airline#themes#get_highlight('Constant'), \ } + " Extra tabline colors + let s:TS = airline#themes#get_highlight('TabLineSel') + let g:airline#themes#lucius#palette.tabline = {} + let g:airline#themes#lucius#palette.tabline.airline_tabsel = s:TS + let g:airline#themes#lucius#palette.tabline.airline_tabsel_right = s:TS + endfunction call airline#themes#lucius#refresh()