The WinLeave event:Fires:Before leaving a window.Fires Before Event(s):WinClosedNotes:If the next window is for a different buffer, Neovim executes the BufLeave auto-commands before the WinLeave auto-commands (but not for :new).Does not fire when exiting Neovim using :qa or :q.