doc: Mention how to add funtions for inactive statuslines
This commit is contained in:
parent
8c36d2b595
commit
e8fd2057a8
@ -1367,6 +1367,7 @@ to override only certain parts of the statusline by only defining window-local
|
|||||||
variables for a subset of all sections.
|
variables for a subset of all sections.
|
||||||
|
|
||||||
------------------------------------- *add_statusline_func*
|
------------------------------------- *add_statusline_func*
|
||||||
|
*add_inactive_statusline_func*
|
||||||
The following is an example of how you can extend vim-airline to support a
|
The following is an example of how you can extend vim-airline to support a
|
||||||
new plugin. >
|
new plugin. >
|
||||||
function! MyPlugin(...)
|
function! MyPlugin(...)
|
||||||
@ -1382,6 +1383,9 @@ new plugin. >
|
|||||||
Notice that only the left side of the statusline is overwritten. This means
|
Notice that only the left side of the statusline is overwritten. This means
|
||||||
the right side (the line/column numbers, etc) will be intact.
|
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*
|
------------------------------------- *remove_statusline_func*
|
||||||
You can also remove a function as well, which is useful for when you want a
|
You can also remove a function as well, which is useful for when you want a
|
||||||
temporary override. >
|
temporary override. >
|
||||||
|
Loading…
Reference in New Issue
Block a user