I'm currently writing a plugin, and got stuck with this problem.
My plugin opens a new window with all local options I want, but also sets the
statusline option to display some useful information. Vim permits to set the
statusline option locally to a window, and this is what I need.
The problem is the race condition between other statusline plugins (like lightline etc.) which override my statusline. Most of these plugins us
WinEnter,BufEnter autocmds that trigger their
Is there a way to "monopolize" the statusline for local windows?