mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
72 lines
1.6 KiB
Lua
72 lines
1.6 KiB
Lua
-- bufferline.nvim – https://github.com/akinsho/bufferline.nvim
|
||
local status_ok, bufferline = pcall(require, "bufferline")
|
||
if not status_ok then
|
||
return
|
||
end
|
||
|
||
bufferline.setup({
|
||
highlights = {
|
||
fill = {
|
||
guibg = "#282828",
|
||
},
|
||
tab_selected = {
|
||
guifg = {
|
||
attribute = "fg",
|
||
highlight = "Normal",
|
||
},
|
||
guibg = {
|
||
attribute = "bg",
|
||
highlight = "Normal",
|
||
},
|
||
},
|
||
tab = {
|
||
guifg = {
|
||
attribute = "fg",
|
||
highlight = "TabLine",
|
||
},
|
||
guibg = {
|
||
attribute = "bg",
|
||
highlight = "TabLine",
|
||
},
|
||
},
|
||
indicator_selected = {
|
||
guifg = {
|
||
attribute = "fg",
|
||
highlight = "LspDiagnosticsDefaultHint",
|
||
},
|
||
guibg = {
|
||
attribute = "bg",
|
||
highlight = "Normal",
|
||
},
|
||
},
|
||
},
|
||
options = {
|
||
modified_icon = "●",
|
||
left_trunc_marker = "",
|
||
right_trunc_marker = "",
|
||
close_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
|
||
right_mouse_command = "Bdelete! %d", -- can be a string | function, see "Mouse actions"
|
||
left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions"
|
||
max_name_length = 25,
|
||
max_prefix_length = 25,
|
||
enforce_regular_tabs = false,
|
||
view = "multiwindow",
|
||
show_buffer_close_icons = true,
|
||
show_close_icon = false,
|
||
separator_style = "thin",
|
||
diagnostics = "nvim_lsp",
|
||
diagnostics_update_in_insert = false,
|
||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||
return "(" .. count .. ")"
|
||
end,
|
||
offsets = {
|
||
{
|
||
filetype = "NvimTree",
|
||
text = "File Explorer",
|
||
highlight = "Directory",
|
||
text_align = "left",
|
||
},
|
||
},
|
||
},
|
||
})
|