Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Strange backgrounds appear #118

Closed
a1401358759 opened this issue Dec 4, 2023 · 6 comments
Closed

[Bug]: Strange backgrounds appear #118

a1401358759 opened this issue Dec 4, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists wontfix This will not be worked on

Comments

@a1401358759
Copy link

Description

image
Strange backgrounds appear

nvim version

NVIM v0.10.0-dev-1746+g5651c1ff2

dropbar.nvim version

2b7c2d5

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

@a1401358759 a1401358759 added the bug Something isn't working label Dec 4, 2023
@a1401358759 a1401358759 changed the title [Bug]: [Bug]: Strange backgrounds appear Dec 4, 2023
@Bekaboo Bekaboo added duplicate This issue or pull request already exists and removed bug Something isn't working labels Dec 4, 2023
@Bekaboo
Copy link
Owner

Bekaboo commented Dec 4, 2023

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 Bekaboo added the wontfix This will not be worked on label Dec 4, 2023
@Bekaboo
Copy link
Owner

Bekaboo commented Dec 4, 2023

Duplicate #2.

@a1401358759
Copy link
Author

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

@MariaSolOs
Copy link
Contributor

@Bekaboo since neovim/neovim#26037 (comment) got merged, can this bit of code be removed now?

@Bekaboo
Copy link
Owner

Bekaboo commented Nov 10, 2024

@MariaSolOs I will remove it once 0.11 is released.

@MariaSolOs
Copy link
Contributor

MariaSolOs commented Nov 11, 2024

@MariaSolOs I will remove it once 0.11 is released.

Would you accept a PR that doesn't set up those autocommands when using nightly?

EDIT: Okay I sent #195 over. Feel free to ignore it if you don't want to deal with special cases when using nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants