🧙 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:
+31
-1
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user