return { { 'nvim-lualine/lualine.nvim', config = function () local lualine = require("lualine") local theme = require("lualine.themes.gruvbox") theme.terminal = theme.insert lualine.setup({ options = { component_separators = { left = "│", right = "│" }, section_separators = { left = "", right = "" }, theme = theme, }, sections = { lualine_a = { "mode" }, lualine_b = { "diagnostics" }, lualine_c = { { "filename", path = 1, }, }, lualine_x = { { "fileformat", cond = function() return vim.bo.fileformat ~= "unix" end, }, { "encoding", cond = function() return vim.bo.fileencoding ~= "utf-8" end, }, }, lualine_y = { { "filetype", icons_enabled = false, symbols = { modified = "", readonly = "", unnamed = "", new = "󰎔", }, }, }, lualine_z = { "searchcount", "progress", "location" }, }, tabline = { 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" }, }, }) end }, }