This commit is contained in:
2025-06-17 22:33:09 +08:00
parent 956b146cb2
commit 0bde25e91d
28 changed files with 858 additions and 40 deletions

View File

@ -0,0 +1,35 @@
return {
{
"akinsho/bufferline.nvim",
event = "VeryLazy",
version = "*",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
opts = {
options = {
numbers = "buffer_id",
right_mouse_command = false,
-- underline
indicator = {
icon = '',
style = 'underline',
},
-- diagnostics
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level)
local icons = require("nvim-web-devicons").get_icons()
local icon_error = icons.diagnostic_error.icon
local icon_warn = icons.diagnostic_warn.icon
local icon = level:match("error") and icon_error or icon_warn
return " " .. icon .. " " .. count
end,
separator_style = "slant",
always_show_bufferline = false,
},
},
config = function(_, opts)
require("bufferline").setup(opts)
end,
},
}