neovim/lua/plugins/bufferline.lua

20 lines
549 B
Lua
Raw Permalink Normal View History

2023-02-26 12:50:20 +00:00
require("bufferline").setup({
2023-02-26 13:29:03 +00:00
options = {
2023-02-26 12:50:20 +00:00
-- 使用 nvim 内置lsp
2023-02-26 13:29:03 +00:00
diagnostics = "nvim_lsp",
2023-02-26 12:50:20 +00:00
diagnostics_indicator = function(count, level, diagnostics_dict)
2023-02-26 13:29:03 +00:00
return "(" .. count .. ")"
end,
always_show_bufferline = false,
-- 左侧让出 nvim-tree 的位置
offsets = {
{
filetype = "NvimTree",
text = "File Explorer",
highlight = "Directory",
text_align = "left",
},
},
},
2023-02-26 12:50:20 +00:00
})