dotfiles/dot_config/nvim/lua/configs/bufferline.lua

19 lines
643 B
Lua

local status_ok, bufferline = pcall(require, "bufferline")
if not status_ok then return end
bufferline.setup(astronvim.user_plugin_opts("plugins.bufferline", {
options = {
offsets = {
{ filetype = "NvimTree", text = "", padding = 1 },
{ filetype = "neo-tree", text = "", padding = 1 },
{ filetype = "Outline", text = "", padding = 1 },
},
buffer_close_icon = astronvim.get_icon "BufferClose",
modified_icon = astronvim.get_icon "FileModified",
close_icon = astronvim.get_icon "NeovimClose",
max_name_length = 14,
max_prefix_length = 13,
tab_size = 20,
separator_style = "thin",
},
}))