modify configuration for bufferline
This commit is contained in:
parent
78d671c682
commit
8ac25e0bc4
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue