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

BufferCurrent Icon bg #608

Open
exzolink opened this issue Aug 29, 2024 · 7 comments
Open

BufferCurrent Icon bg #608

exzolink opened this issue Aug 29, 2024 · 7 comments
Assignees
Labels
bug Something isn't working needs-repro Minimal reproduction is needed.
Milestone

Comments

@exzolink
Copy link

Description
Looks like devicons have background from Normal highlight, instead of BufferDefaultCurrent

Screenshots
First - current, second - visible
https://imgur.com/a/kL06BvO

Informations
Neovim version: 0.10

@Iron-E Iron-E added the bug Something isn't working label Sep 2, 2024
@Iron-E Iron-E modified the milestones: 1.10, 1.9.2 Sep 2, 2024
@Iron-E
Copy link
Collaborator

Iron-E commented Sep 2, 2024

I put together a minimal config and wasn't able to reproduce:

--[[ minimal.lua ]]
local lazy = vim.fn.stdpath('data') .. '/lazy/'
vim.opt.rtp:prepend {
  lazy .. 'barbar.nvim',
  lazy .. 'nvim-web-devicons',
}

vim.g.barbar_auto_setup = false
require('barbar').setup {}

vim.api.nvim_create_autocmd('ColorScheme', {
  callback = function()
    vim.cmd.highlight { 'BufferCurrent', 'guibg=#00FF00' }
  end,
})

vim.api.nvim_create_autocmd('VimEnter', {
  callback = vim.schedule_wrap(function()
    vim.cmd.colorscheme 'habamax'
  end),
})

With this, the icons for the current buffer inherit from BufferCurrent. Does the same happen for you?

@Iron-E Iron-E self-assigned this Sep 2, 2024
@Iron-E Iron-E added the needs-repro Minimal reproduction is needed. label Sep 2, 2024
@exzolink
Copy link
Author

exzolink commented Sep 2, 2024

Can't reproduce in minimal config, but what i get in my config for lua icon for example

Screenshot_1
Screenshot_2

For current icon background is not set explicitly

@Iron-E
Copy link
Collaborator

Iron-E commented Sep 7, 2024

Can your share your config? Or edit the minimal config to show the behavior?

Sorry for the trouble 😅

@exzolink
Copy link
Author

exzolink commented Sep 8, 2024

I tried installing different highlights in a minimal config, but I couldn't reproduce it.
Here's my NvChad config:
https://github.com/exzolink/dotfiles/blob/main/nvim/lua/chadrc.lua#L34

@Iron-E
Copy link
Collaborator

Iron-E commented Sep 21, 2024

Note to self: try reproducing in minimal config with https://github.com/NvChad/base46

@Iron-E
Copy link
Collaborator

Iron-E commented Nov 9, 2024

Does moving the barbar groups from hl_add to hl_override change anything? I'm not too familiar with NvChad but after skimming the documentation that might be worth trying

@exzolink
Copy link
Author

exzolink commented Nov 18, 2024

Does moving the barbar groups from hl_add to hl_override change anything? I'm not too familiar with NvChad but after skimming the documentation that might be worth trying

No, this is only for overriding exist NvChad integrations

auto_hide = true fixes issue, so i think something with hl set ordering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-repro Minimal reproduction is needed.
Projects
None yet
Development

No branches or pull requests

2 participants