nvim: statusline: Do not set winbar for floating windows
This commit is contained in:
parent
8e8f6110e5
commit
a18a0415b7
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue