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 update
function.
Is there a way to "monopolize" the statusline for local windows?
statusline
in whatever way they like. – dedowsdi Jul 4 '20 at 11:40MypluginStatusline()
instead. – Matt Jul 4 '20 at 12:51