akinsho / akinsho/bufferline.nvim

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

Đang mở
#995 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Lua
Star
4.4k
Fork
240
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.