Suppose that using
bufwinnr() I find the windows number where a given buffer is being displayed to be
With that information, is there a way to display a specific string only in the
airline status bar of that window, this is, of window
To be more specific, of course I did find examples of how to define airline parts for custom functions (see Add custom section to airline). However, what I could not do yet is to find how:
1) define an airline part for a constant string (for example stored in a dictionary). While the possibility of creating a part with a constant string is mentioned in
:h airline-advanced-customization, there's no example of that and I can't seem find it easily.
2) I can't seem to find what would be the proper way to display specific strings in each window airline, according to the window number.
Any help or resource will be appreciated.