Skip to content

Bug: Setting color to highlight group causes component separators to disappear #1445

@LandonSchropp

Description

@LandonSchropp

Self Checks

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

How to reproduce the problem

Using the minimal config below, open up Neovim.

Expected behaviour

The components in Lualine should be displayed with component separators.

Image

Actual behaviour

The components are not displayed with separators.

Image

Minimal config to reproduce the issue

call plug#begin("/Users/landon/.dotfiles/example/.local/share/nvim/plugged")

Plug 'nvim-lualine/lualine.nvim'

call plug#end()

lua << END

require'lualine'.setup {
  options = {
    component_separators = "|",
  },
  sections = {
    lualine_a = {},
    lualine_b = {},
    lualine_c = {
      { "filename", color = "Normal" },
      { "filename", color = "Normal" },
      { "filename", color = "Normal" },
      { "filename", color = "Normal" },
    },
    lualine_x = {},
    lualine_y = {},
    lualine_z = {},
  },
}

END

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions