local M = {} M.theme = function() local colors = { darkgray = "#16161d", gray = "#727169", innerbg = nil, outerbg = "#16161D", normal = "#7e9cd8", insert = "#98bb6c", visual = "#ffa066", replace = "#e46876", command = "#e6c384", } return { inactive = { a = { fg = colors.gray, bg = colors.outerbg, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, visual = { a = { fg = colors.darkgray, bg = colors.visual, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, replace = { a = { fg = colors.darkgray, bg = colors.replace, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, normal = { a = { fg = colors.darkgray, bg = colors.normal, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, insert = { a = { fg = colors.darkgray, bg = colors.insert, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, command = { a = { fg = colors.darkgray, bg = colors.command, gui = "bold" }, b = { fg = colors.gray, bg = colors.outerbg }, c = { fg = colors.gray, bg = colors.innerbg }, }, } end require('lualine').setup { options = { icons_enabled = true, theme = M.theme(), -- Apply the custom theme component_separators = { left = '', right = '' }, section_separators = { left = '', right = '' }, disabled_filetypes = { statusline = {}, winbar = {}, }, ignore_focus = {}, always_divide_middle = true, always_show_tabline = true, globalstatus = false, refresh = { statusline = 100, tabline = 100, winbar = 100, } }, tabline = {}, winbar = {}, inactive_winbar = {}, extensions = {} }