themed lualine

This commit is contained in:
2024-01-12 14:20:57 +01:00
parent a7053d63f0
commit c1c74e630f
6 changed files with 84 additions and 5 deletions

View File

@@ -1,11 +1,57 @@
local theme = function()
local colors = {
darkgray = "#181825",
gray = "#cdd6f4",
innerbg = nil,
outerbg = "#313244",
normal = "#89b4fa",
insert = "#a6e3a1",
visual = "#cdd6f4",
replace = "#f38ba8",
command = "#fab387",
}
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 = 'auto',
theme = theme(),
component_separators = { left = '', right = '' },
section_separators = { left = '', right = '' },
disabled_filetypes = {
statusline = {},
statusline = { 'packer' },
winbar = {},
},
ignore_focus = {},