akinsho / akinsho/bufferline.nvim
[Bug]: Bufferline crash with `Invalid 'name': Expected Lua string
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
### 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:

### 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_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.