folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.12k stars 172 forks source link

bug: two winbar at the same time #464

Closed b1nhack closed 1 month ago

b1nhack commented 1 month ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

macOS 14.5

Describe the bug

Using the default preview options, when the preview content is in the current window, two winbars appear (I'm using lualine to customize the winbar).

Steps To Reproduce

  1. Display something in the winbar.
  2. Preview some content contained in the current window using Trouble.

Expected Behavior

Only one winbar.

Repro

No response

folke commented 1 month ago

When I do :set winbar=foobar, then I don't see the duplicate winbars. Can you give me the full steps to reproduce?

folke commented 1 month ago

Is it fixed when you set opts.preview.wo.winbar = ""? If so, I'll just add that to the defaults

b1nhack commented 1 month ago

Is it fixed when you set opts.preview.wo.winbar = ""? If so, I'll just add that to the defaults

After following the above settings, the issue was resolved.