From e8fd2057a8f2d08dde90fdfe6f32e3ae021db5b4 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 8 Nov 2018 17:20:41 +0100 Subject: [PATCH] doc: Mention how to add funtions for inactive statuslines --- doc/airline.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/airline.txt b/doc/airline.txt index 1e7cf888..920ce6c7 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -1367,6 +1367,7 @@ to override only certain parts of the statusline by only defining window-local variables for a subset of all sections. ------------------------------------- *add_statusline_func* + *add_inactive_statusline_func* The following is an example of how you can extend vim-airline to support a new plugin. > function! MyPlugin(...) @@ -1382,6 +1383,9 @@ new plugin. > Notice that only the left side of the statusline is overwritten. This means the right side (the line/column numbers, etc) will be intact. +To have the function act only on statuslines of inactive functions, use +`airline#add_inactive_statusline_func('MyPlugin')` + ------------------------------------- *remove_statusline_func* You can also remove a function as well, which is useful for when you want a temporary override. >