neovim/lua/plugins/bufferline.lua
2023-03-27 23:12:54 +08:00

20 lines
549 B
Lua

require("bufferline").setup({
options = {
-- 使用 nvim 内置lsp
diagnostics = "nvim_lsp",
diagnostics_indicator = function(count, level, diagnostics_dict)
return "(" .. count .. ")"
end,
always_show_bufferline = false,
-- 左侧让出 nvim-tree 的位置
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
highlight = "Directory",
text_align = "left",
},
},
},
})