akinsho / akinsho/bufferline.nvim
[Bug]: Bufferline crash with `Invalid 'name': Expected Lua string
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 240
- PR 合并指标
- 30 天内没有已合并 PR
描述
### 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_
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。