Skip to content

Commit

Permalink
fix: disable winbar on Noice windows
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 25, 2022
1 parent 10a97a0 commit 1b37f74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/noice/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ function View:render(buf, opts)
opts = opts or {}
local linenr = opts.offset or 1

local win = vim.fn.bufwinid(buf)
if win ~= -1 then
vim.api.nvim_win_set_option(win, "winbar", "")
end

if self._opts.buf_options then
require("nui.utils")._.set_buf_options(buf, self._opts.buf_options)
end
Expand Down

0 comments on commit 1b37f74

Please sign in to comment.