🧙 Implement Rootiest Module

- Major Update!!!
- Implements a rootiest module
  - Consolidates much of the settings
  - Improves usability and efficiency
- Faster Loading
- Cleaner Structure
- More keymaps and plugins now have conditional loading
This commit is contained in:
2024-07-24 13:45:52 -04:00
parent f38daf087c
commit 05670570f1
16 changed files with 618 additions and 440 deletions
+31 -1
View File
@@ -1,8 +1,10 @@
-- -----------------------------------------------------------------------------
-- --------------------------------- THEMES ------------------------------------
-- -----------------------------------------------------------------------------
local rootiest = require("config.rootiest")
return {
-- ----------------------- Themes --------------------------
{ -- Tokyonight
"folke/tokyonight.nvim",
lazy = false, -- Override
@@ -10,7 +12,6 @@ return {
{ -- Catppuccin
"catppuccin/nvim",
lazy = false, -- Override
opts = { integrations = { grug_far = true } },
},
{ -- Ayu
"Shatur/neovim-ayu",
@@ -59,4 +60,33 @@ return {
"zenbones-theme/zenbones.nvim",
dependencies = { "rktjmp/lush.nvim" },
},
-- ---------------------- Utilities ------------------------
{ -- Transparent
"xiyaowong/transparent.nvim",
lazy = true,
config = true,
},
{ -- Auto Dark Mode
"f-person/auto-dark-mode.nvim",
lazy = true,
opts = {
update_interval = 2000,
set_dark_mode = function()
vim.o.background = "dark"
vim.cmd.colorscheme(
rootiest.colortheme or "catppuccin-frappe" or "tokyonight"
)
end,
set_light_mode = function()
vim.o.background = "light"
vim.cmd.colorscheme(
rootiest.colortheme or "catppuccin-latte" or "tokyonight-day"
)
end,
},
cond = function() -- Not Using SSH
local ssh = os.getenv("SSH_TTY") or false
return not ssh
end,
},
}