nvim: statusline: Do not set winbar for floating windows

This commit is contained in:
Sanchayan Maity 2022-08-31 11:44:38 +05:30
parent 8e8f6110e5
commit a18a0415b7

View file

@ -252,6 +252,12 @@ api.nvim_create_autocmd({"WinLeave" , "BufLeave"}, {
api.nvim_create_autocmd({"BufWinEnter", "BufFilePost"}, {
group = status_id,
callback = function()
-- Skip floating windows
-- Idea taken from https://github.com/itchyny/lightline.vim/pull/552
if api.nvim_win_get_config(0).relative ~= '' then
return
end
local winbar_filetype_exclude = {
"diff",
"fugitive",