🧠 Reorganize packaging

- Better organized and more efficient
This commit is contained in:
2024-07-16 14:37:11 -04:00
parent 0648c5d38b
commit fcfb8e6e00
13 changed files with 185 additions and 91 deletions
+23
View File
@@ -128,4 +128,27 @@ return {
})
end,
},
{
"f-person/auto-dark-mode.nvim",
lazy = true,
opts = {
update_interval = 1000,
set_dark_mode = function()
vim.o.background = "dark"
local kitty_theme = os.getenv("KITTY_THEME")
vim.cmd.colorscheme(kitty_theme or "catppuccin-frappe")
end,
set_light_mode = function()
vim.o.background = "light"
local kitty_theme = os.getenv("KITTY_THEME")
vim.cmd.colorscheme(kitty_theme or "catppuccin-latte")
end,
},
cond = function() -- Not Using SSH or root
local ssh = os.getenv("SSH_TTY") or false
local user = os.getenv("USER") or ""
local root = string.find(user, "root")
return not ssh and not root
end,
},
}