nvim-lualine / lualine.nvim

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

Bug: Invalid buffer id error occurs when call Telescope window #532

Closed hexh250786313 closed 2 years ago

hexh250786313 commented 2 years ago

Self Checks

How to reproduce the problem

  1. Start nvim
  2. Call a nvim-telescope window
  3. Error messages like this: image

Expected behaviour

No error.

Actual behaviour

  1. Prints error messages
  2. Lualine tabline does not work after the error occurs

Minimal config to reproduce the issue

local status, lualine = pcall(require, "lualine")
if (not status) then return end

lualine.setup {
  tabline = {
    lualine_a = {
      {
        'buffers',
        show_filename_only = true,
        mode = 2,
        max_length = vim.o.columns * 1 / 2,
      }
    },
    lualine_b = {},
    lualine_c = {},
    lualine_x = {},
    lualine_y = {
      {
        'filename',
        path = 1
      },
    },
    lualine_z = {'tabs'}
  }
}
aitvann commented 2 years ago

I have similar problem with startify

image

minimal config:

vim.cmd [[
call plug#begin('~/.nvim/plugins')
Plug 'nvim-lualine/lualine.nvim'
Plug 'mhinz/vim-startify'
call plug#end()
]]

require('lualine').setup {
    tabline = {
        lualine_b = { 'buffers' },
    },
}
shadmansaleh commented 2 years ago

Thanks for the report . See if it's fixed now .

Spo0on commented 1 year ago

I have same problem with Noice plugin.

Schermata 2022-12-16 alle 16 31 37

That errors only occurs when the globalstatus option is enabled.