Add bufferline options to always show the bufferline, use ordinal numbers, and sort by insert position in the current setup

This commit is contained in:
PeteChu 2023-04-06 01:29:34 +07:00
parent e7b27047e2
commit 606b0572d2
6 changed files with 28 additions and 36 deletions

View file

@ -4,12 +4,14 @@ return {
config = function()
require("bufferline").setup {
options = {
numbers = "ordinal",
indicator = { style = "icon", icon = "" },
diagnostics = 'nvim_lsp', -- | "nvim_lsp" | "coc",
diagnostics_update_in_insert = false,
offsets = { { filetype = "NvimTree", text = "File Explorer", padding = 1 } },
separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' },
always_show_bufferline = true,
sort_by = "insert_after_current"
}
}
end