Skip to content

Commit

Permalink
refactor(nvim): no winbar for non-normal buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Nov 3, 2023
1 parent 1aa63ee commit 273f799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configs/nvim/lua/plugin/appearance/miniline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,11 @@ local setup = function ()
local win_cfg = api.nvim_win_get_config(wid)
local bufid = api.nvim_win_get_buf(wid)
local ft = api.nvim_buf_get_option(bufid, 'filetype')
local bt = api.nvim_buf_get_option(bufid, 'buftype')
local skip = (
ft == 'NvimTree' or ft == 'TreeFilter' or ft == 'alpha' or
ft == 'vim-plug' or ft == 'packer' or ft == 'qf' or ft == 'dbui' or
ft == 'dbout'
ft == 'dbout' or bt ~= ''
)

if
Expand Down

0 comments on commit 273f799

Please sign in to comment.