akinsho / akinsho/bufferline.nvim

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

未关闭
#995 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
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:

![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_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。