Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
896 stars 17 forks source link

[Bug]: Strange backgrounds appear #118

Closed a1401358759 closed 6 months ago

a1401358759 commented 7 months ago

Description

image Strange backgrounds appear

nvim version

NVIM v0.10.0-dev-1746+g5651c1ff2

dropbar.nvim version

2b7c2d53363cb3d93376904dac3ea6d52dd900c5

Operating system and version

archlinux 6.6.3-arch1-1

Minimal config

local tmp = vim.env.TMPDIR
  or vim.env.TEMPDIR
  or vim.env.TMP
  or vim.env.TEMP
  or '/tmp'
local data = tmp ..  '/' .. (vim.env.NVIM_APPNAME or 'nvim')
local packages_root = data .. '/site'
local cloned_root = packages_root .. '/pack/packages/start'
local cloned_path = cloned_root .. '/dropbar.nvim'
local url = 'https://github.com/Bekaboo/dropbar.nvim.git'

vim.fn.mkdir(cloned_root, 'p')
vim.opt.pp:prepend(packages_root)
vim.opt.rtp:prepend(packages_root)

if not vim.loop.fs_stat(cloned_path) then
  vim.fn.system({ 'git', 'clone', url, cloned_path })
end

require('dropbar').setup()

Steps to reproduce

No desc

Expected behavior

No desc

Actual behavior

No desc

Additional information

No response

Bekaboo commented 7 months ago

This is because your colorscheme sets background color for winbar, a simple workaround is :hi WinBar guibg=NONE if you don't want background colors.

Currently, there is no easy way to have highlighted chunks in winbar or statusline in nvim that respects the background color of hl-WinBar / hl-StatusLine / hl-WinBarNC / hl-StatusLineNC. But if this is merged into master we will no longer have similar issues.

Bekaboo commented 7 months ago

Duplicate #2.

a1401358759 commented 7 months ago

Thank you very much for your answer, it has solved my problem!