1
0
Fork 0

lualine: increase buffers size in tabline

This commit is contained in:
Felipe 2023-09-01 15:34:07 -04:00
parent ba6defdd3e
commit cdce5d4b51
Signed by: pitbuster
SSH key fingerprint: SHA256:OM3HeVSA96adfy2Gi8OhZkQBY67P88LoJUwkeVoTArQ

View file

@ -95,8 +95,16 @@ lualine.setup({
}, },
lualine_z = { 'searchcount', 'progress', 'location' }, lualine_z = { 'searchcount', 'progress', 'location' },
}, },
tabline = (g.started_by_firenvim == true and {}) or { tabline = {
lualine_a = { 'buffers' }, lualine_a = {
{
'buffers',
show_filename_only = false,
max_length = function()
return math.max(math.ceil(vim.o.columns * 2 / 3), vim.o.columns - 6)
end
},
},
lualine_z = { 'tabs' }, lualine_z = { 'tabs' },
}, },
}) })