akinsho / akinsho/bufferline.nvim

[Bug]: Bufferline crash with `Invalid 'name': Expected Lua string

Abierto
#995 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Lua
Estrellas
4.4k
Forks
240
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

Often but not always, Bufferline crashes with the following error message:

![Image](https://github.com/user-attachments/assets/8b9c371a-848b-4feb-95de-009758047c36)

### What did you expect to happen?

Bufferline should not crash

### Config

```lua
{
enabled = true,
'akinsho/bufferline.nvim',
event = { "BufReadPre", "BufNewFile" },
version = "*",
dependencies = {
'nvim-tree/nvim-web-devicons'
},
keys = {
{ '/', mode = { 'n', 'v' } },
{ mode = 'n', 'bf', ":BufferLinePick", desc = 'Pick Buffer' },
{ mode = 'n', 'bp', ":BufferLineTogglePin", desc = 'Pin Buffer' },
},
opts = {
options = {
numbers = "none",
indicator = {
icon = '▎',
style = 'icon'
},
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
separator = true
}
},
separator_style = "think",
hover = {
enabled = true,
delay = 200,
reveal = { 'close' }
},
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
-- return "("..count..")"
local icon = level:match("error") and " " or " "
return " " .. icon .. count
end,
sort_by = 'insert_at_end',
}
}
}
```

### Additional Information

...

### commit

_No response_

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.