diff options
| author | triethyl <triethylammonium@pm.me> | 2025-07-08 15:44:17 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-07-08 15:44:17 -0400 |
| commit | a544c622d31187f245b34b9b8b17cbb63a941480 (patch) | |
| tree | 5f5f22c3ba814a6880d0849a7076aba10eb99b5e /pkgs/custom-neovim/config/lua/utilities.lua | |
| parent | 6646af18a28b5f2ecc56a7d6364b9ca6cb401b8f (diff) | |
configured lualine and tabby
Former-commit-id: 947770af8ae586dfc89c0d498a766c7aaa802dd2
Diffstat (limited to 'pkgs/custom-neovim/config/lua/utilities.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/utilities.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/utilities.lua b/pkgs/custom-neovim/config/lua/utilities.lua index fe86dd6..3de4a54 100644 --- a/pkgs/custom-neovim/config/lua/utilities.lua +++ b/pkgs/custom-neovim/config/lua/utilities.lua @@ -3,3 +3,23 @@ utils = {} utils.mapkey = function(mode, key, desc, action) vim.keymap.set(mode, key, action, {noremap = true, silent = true, desc = desc}) end + +utils.generate_theme_from_lualine = function() + local auto_theme = require("lualine.themes.auto") + return { + 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, + }, + background = auto_theme.normal.c.bg, + } +end + |
