modify configuration for bufferline

This commit is contained in:
leafee98 2023-12-14 19:59:42 +08:00
parent 78d671c682
commit 8ac25e0bc4

View file

@ -31,23 +31,30 @@ return {
enabled = custom.full_feature,
main = "bufferline",
event = "VeryLazy",
keys = {
{ "zn", "<cmd>BufferLineCycleNext<cr>" },
{ "zp", "<cmd>BufferLineCyclePrev<cr>" },
{ "zcn", "<cmd>BufferLineMoveNext<cr>" },
{ "zcp", "<cmd>BufferLineMovePrev<cr>" },
},
opts = {
options = {
numbers = "both",
numbers = "ordinal",
diagnostics = "nvim_lsp",
separator_style = "slant",
diagnostics_indicator = function(count, level, diagnostics_dict, context)
local icon = level:match("error") and "" or ""
return " " .. icon .. count
end,
separator_style = "thick",
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
text = "Nvim Tree",
text_align = "center",
separator = true,
},
},
hover = {
delay = 200,
reveal = { "close" },
},
persist_buffer_sort = false,
}
},
},
@ -104,3 +111,4 @@ return {
end,
}
}