26 lines
473 B
Lua
26 lines
473 B
Lua
|
local present, bufferline = pcall(require, "bufferline")
|
||
|
if not present then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
bufferline.setup {
|
||
|
options = {
|
||
|
numbers = function(opts)
|
||
|
return string.format("%s", opts.id)
|
||
|
end,
|
||
|
diagnostics = "nvim_lsp",
|
||
|
offsets = {
|
||
|
{
|
||
|
filetype = "NvimTree",
|
||
|
text = "File Explorer",
|
||
|
highlight = "Directory",
|
||
|
text_align = "left"
|
||
|
},
|
||
|
{
|
||
|
filetype = "vista",
|
||
|
text = "LspTags",
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|