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: Icons show white separator #1225

Open
2 tasks done
SebasF1349 opened this issue Apr 8, 2024 · 1 comment
Open
2 tasks done

Bug: Icons show white separator #1225

SebasF1349 opened this issue Apr 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SebasF1349
Copy link

Self Checks

  • I'm using the latest lualine.
  • I didn't find the issue in existing issues or PRs.

How to reproduce the problem

Only a component with an icon in an inactive lualine/winbar is needed. My theme is Catppuccin with minimal config too.

Expected behaviour

Separators should be transparent with a transparent theme/background.

Actual behaviour

wezterm-gui_2rubnyp0RN

This wasn't happening before, but I can't point when it started happening. As you can see, the separator is not transparent. It only happens if the last component is an icon, if it's text the separator isn't shown. And it only happens in the inactive window, active windows shows as expected (transparent if needed).

Minimal config to reproduce the issue

return {
  "nvim-lualine/lualine.nvim",
  event = { "BufReadPre", "BufNewFile" },
  dependencies = { "nvim-tree/nvim-web-devicons" },
  opts = {
    options = {
      icons_enabled = true,
      component_separators = { left = "", right = "" },
      section_separators = { left = "", right = "" },
      disabled_filetypes = {
        statusline = {},
        winbar = {},
      },
      ignore_focus = {},
      globalstatus = true,
    },
    sections = {
      lualine_a = { "mode" },
      lualine_b = {},
      lualine_c = {},
      lualine_x = {},
      lualine_y = {},
      lualine_z = {},
    },
    inactive_sections = {},
    tabline = {},
    winbar = {
      lualine_a = {},
      lualine_b = {},
      lualine_c = {},
      lualine_x = {},
      lualine_y = { { "filetype", icon_only = true } },
      lualine_z = { { "filename", path = 1 } },
    },
    inactive_winbar = {
      lualine_a = {},
      lualine_b = {},
      lualine_c = {},
      lualine_x = {},
      lualine_y = { { "filetype", icon_only = true } },
      lualine_z = { { "filename", path = 1 } },
    },
  },
}

Additional information

@SebasF1349 SebasF1349 added the bug Something isn't working label Apr 8, 2024
@miversen33
Copy link

I am seeing the same behavior but its only temporary on my system. In my specific case the separator between a static item (such as file name) and a conditional item (such as diagnostics) will cause this white separator to appear while the conditional item is loading. I also see this when I have git-blame enabled since that is also conditional. It seems like there was a change to how conditional logic is used to determine what separator to display?

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

No branches or pull requests

2 participants