From 39ae9c61ce0c3ed8b3945f9d233271729c559936 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 14 Jul 2013 15:44:16 -0400 Subject: [PATCH] add g:airline_exclude_preview option. resolves #72. --- autoload/airline.vim | 3 +++ doc/airline.txt | 7 +++++++ plugin/airline.vim | 1 + 3 files changed, 11 insertions(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index 52e88e76..b927d465 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -59,6 +59,9 @@ function! s:is_excluded_window() return 1 endif endfor + if g:airline_exclude_preview && &previewwindow + return 1 + endif return 0 endfunction diff --git a/doc/airline.txt b/doc/airline.txt index 50b36a41..a290034d 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -86,6 +86,13 @@ values): let g:airline_exclude_filetypes = [] " see source for current list < +* defines whether the preview window should be excluded from have its window + statusline modified (may help with plugins which use the preview window + heavily) +> + let g:airline_exclude_preview = 0 +< + ============================================================================== CUSTOMIZATION *airline-customization* diff --git a/plugin/airline.vim b/plugin/airline.vim index 7f462b56..1c7061aa 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -22,6 +22,7 @@ call s:check_defined('g:airline_paste_symbol', (exists('g:airline_powerline_font call s:check_defined('g:airline_theme', 'dark') call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus']) call s:check_defined('g:airline_exclude_filetypes', []) +call s:check_defined('g:airline_exclude_preview', 0) call s:check_defined('g:airline_window_override_funcrefs', []) call s:check_defined('g:airline_mode_map', {