mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 08:26:07 +08:00
add documentation about airline_exclude_funcrefs
This commit is contained in:
parent
bce1632c42
commit
c095a48aad
|
@ -173,7 +173,6 @@ with the usual statusline syntax.
|
|||
If there is a particular plugin or filetype that is not supported, you can
|
||||
extend it by adding a function reference to the global array. Here is an
|
||||
example that you could add to your vimrc:
|
||||
|
||||
>
|
||||
function! MyPlugin()
|
||||
if &filetype == 'MyPluginFileType'
|
||||
|
@ -185,6 +184,15 @@ example that you could add to your vimrc:
|
|||
call add(g:airline_window_override_funcrefs, function('MyPlugin'))
|
||||
<
|
||||
|
||||
In a similar fashion, you can define a function to exclude a window from
|
||||
having its statusline modified.
|
||||
>
|
||||
function! ExcludeFoo()
|
||||
return &filetype == 'FooType'
|
||||
endfunction
|
||||
call add(g:airline_exclude_funcrefs, function('ExcludeFoo'))
|
||||
<
|
||||
|
||||
==============================================================================
|
||||
WRITING THEMES *airline-themes*
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user