nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.03k stars 464 forks source link

Bug: #1155

Open massimiliano-della-rovere opened 10 months ago

massimiliano-della-rovere commented 10 months ago

Self Checks

How to reproduce the problem

Install LSP Saga, see https://nvimdev.github.io/lspsaga/ In LSP Saga configuration, activate the breadcrumb module, I used the "Use event = 'LspAttach' (need latest lazy.nvim 2023-July-9)" method. Activate both tabline, winbar and inactive_winbar.

Expected behaviour

The LSP Saga breadcrumbs to appear after the tabline and winbar.

Actual behaviour

The LSP Saga breadcrumbs line is overwritten by the Lualine winbar.

Minimal config to reproduce the issue

require('lazy').setup({
  {
    -- Set lualine as statusline
    'nvim-lualine/lualine.nvim',
    dependencies = { 'nvim-tree/nvim-web-devicons' },
    -- See `:help lualine.txt`
    opts = {
      options = {
        icons_enabled = true,
        theme = 'onedark',
        -- component_separators = { left = '', right = ''}, -- = '|',
        -- section_separators = { left = '', right = ''}, -- = '',
        section_separators = { left = '', right = '' },
        component_separators = { left = '', right = '' }
      },
      sections = {
        lualine_a = { 'mode' },
        lualine_b = { 'branch', 'diff', 'diagnostics' },
        lualine_c = { { 'filename', path = 3 } },
        lualine_x = { 'encoding', 'fileformat', 'filetype' },
        lualine_y = { 'progress' },
        lualine_z = { 'location' },
      },
      tabline = {
        lualine_a = { { 'tabs', mode = 2 } },
        lualine_b = {},
        lualine_c = {},
        lualine_x = {},
        lualine_y = {},
        lualine_z = { { 'buffers', mode = 4 } },
      },
      winbar = {
        lualine_a = { { 'windows', mode = 2 } },
        lualine_b = {},
        lualine_c = {},
        lualine_x = { 'searchcount' },
        lualine_y = {},
        lualine_z = { 'selectioncount' },
      },
      inactive_winbar = {
        lualine_a = { { 'windows', mode = 0 } },
        lualine_b = {},
        lualine_c = {},
        lualine_x = {},
        lualine_y = {},
        lualine_z = {},
      }

    },
  },
  {
    'nvimdev/lspsaga.nvim',
    config = function()
      require('lspsaga').setup({})
    end,
    dependencies = {
      'nvim-treesitter/nvim-treesitter',
      'nvim-tree/nvim-web-devicons',
    },
    event = 'LspAttach'
  },
})

Additional information

nvim -v: v0.10.0-dev lspsaga commit: d3dfaea lualine commit: 2248ef2 terminal: xfce4-terminal 0.8.10 see https://github.com/nvimdev/lspsaga.nvim/issues/1354