summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/lualine.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-07-07 11:43:06 -0400
committertriethyl <triethylammonium@pm.me>2025-07-07 11:43:06 -0400
commitbe6c16189410b280dd9f94cc2821ffcbd721dbc2 (patch)
treeeabfba3f43b73d3db7503a02891db544bc2f77fd /pkgs/custom-neovim/config/lua/plugins/lualine.lua
parent546752feb6576be92fe421be1998217aa7d657ff (diff)
working on neovim
Former-commit-id: 025d1930a0ae07909efe826cc902424ff57d5ce9
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/lualine.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/lualine.lua99
1 files changed, 98 insertions, 1 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/lualine.lua b/pkgs/custom-neovim/config/lua/plugins/lualine.lua
index 9814cae..409c452 100644
--- a/pkgs/custom-neovim/config/lua/plugins/lualine.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/lualine.lua
@@ -1 +1,98 @@
-require("lualine").setup()
+local auto_theme = require("lualine.themes.auto")
+
+local colors = {
+ modes = {
+ normal = auto_theme.normal.a.bg,
+ insert = auto_theme.insert.a.bg,
+ visual = auto_theme.visual.a.bg,
+ replace = auto_theme.replace.a.bg,
+ command = auto_theme.command.a.bg,
+ inactive = auto_theme.inactive.a.bg,
+ },
+ text = {
+ dark = auto_theme.normal.a.fg,
+ light = auto_theme.normal.c.fg,
+ },
+ backdrop = auto_theme.normal.c.bg,
+}
+
+local custom_auto_theme = {
+ normal = {
+ a = {bg = colors.modes.normal, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.normal, fg = colors.text.dark, gui = 'bold'},
+ },
+ insert = {
+ a = {bg = colors.modes.insert, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.insert, fg = colors.text.dark, gui = 'bold'},
+ },
+ visual = {
+ a = {bg = colors.modes.visual, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.visual, fg = colors.text.dark, gui = 'bold'},
+ },
+ replace = {
+ a = {bg = colors.modes.replace, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.replace, fg = colors.text.dark, gui = 'bold'},
+ },
+ command = {
+ a = {bg = colors.modes.command, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.command, fg = colors.text.dark, gui = 'bold'},
+ },
+ inactive = {
+ a = {bg = colors.modes.inactive, fg = colors.text.dark, gui = 'bold'},
+ b = {bg = colors.backdrop, fg = colors.text.light},
+ c = {bg = colors.backdrop, fg = colors.text.light},
+ x = {bg = colors.backdrop, fg = colors.text.light},
+ y = {bg = colors.backdrop, fg = colors.text.light},
+ z = {bg = colors.modes.inactive, fg = colors.text.dark, gui = 'bold'},
+ },
+};
+
+require('lualine').setup {
+ options = {
+ theme = custom_auto_theme,
+ component_separators = "",
+ section_separators = { left = '', right = '' },
+ },
+ sections = {
+ lualine_a = { { 'mode', separator = { left = '', rignt = '' }, right_padding = 2 } },
+ lualine_b = { 'filename', 'branch' },
+ lualine_c = {
+ '%=', --[[ add your center components here in place of this comment ]]
+ },
+ lualine_x = {},
+ lualine_y = { 'filetype', 'progress' },
+ lualine_z = {
+ { 'location', separator = { left = '', right = '' }, left_padding = 2 },
+ },
+ },
+ inactive_sections = {
+ lualine_a = { 'filename' },
+ lualine_b = {},
+ lualine_c = {},
+ lualine_x = {},
+ lualine_y = {},
+ lualine_z = { 'location' },
+ },
+ tabline = {},
+ extensions = {},
+}