Tune bufferline and tmux window movement

This commit is contained in:
2026-04-03 16:51:42 +02:00
parent bfdd433d4a
commit 7279d1272e
3 changed files with 83 additions and 2 deletions

View File

@@ -218,7 +218,7 @@ end,
requires = "nvim-tree/nvim-web-devicons",
after = "onedark.nvim",
config = function()
require("bufferline").setup()
require("tracer.plugins.bufferline")
end,
})

View File

@@ -0,0 +1,79 @@
require("bufferline").setup({
options = {
indicator = {
icon = " ",
},
show_close_icon = false,
tab_size = 0,
max_name_length = 25,
offsets = {
{
filetype = "NvimTree",
text = " Files",
highlight = "StatusLine",
text_align = "left",
},
},
separator_style = "slant",
modified_icon = "",
custom_areas = {
left = function()
return {
{ text = "", fg = "#8fff6d" },
}
end,
},
},
highlights = {
fill = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
background = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
tab = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
tab_close = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
close_button = {
bg = { attribute = "bg", highlight = "StatusLine" },
fg = { attribute = "fg", highlight = "StatusLineNonText" },
},
close_button_visible = {
bg = { attribute = "bg", highlight = "StatusLine" },
fg = { attribute = "fg", highlight = "StatusLineNonText" },
},
close_button_selected = {
fg = { attribute = "fg", highlight = "StatusLineNonText" },
},
buffer_visible = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
modified = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
modified_visible = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
duplicate = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
duplicate_visible = {
bg = { attribute = "bg", highlight = "StatusLine" },
},
separator = {
fg = { attribute = "bg", highlight = "StatusLine" },
bg = { attribute = "bg", highlight = "StatusLine" },
},
separator_selected = {
fg = { attribute = "bg", highlight = "StatusLine" },
bg = { attribute = "bg", highlight = "Normal" },
},
separator_visible = {
fg = { attribute = "bg", highlight = "StatusLine" },
bg = { attribute = "bg", highlight = "StatusLine" },
},
},
})