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"}, {
|
api.nvim_create_autocmd({"BufWinEnter", "BufFilePost"}, {
|
||||||
group = status_id,
|
group = status_id,
|
||||||
callback = function()
|
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 = {
|
local winbar_filetype_exclude = {
|
||||||
"diff",
|
"diff",
|
||||||
"fugitive",
|
"fugitive",
|
||||||
|
|
Loading…
Reference in a new issue