🚚 Better structure

- Reorganize plugins
- Eliminate ui directory
- Follows proper config structure
This commit is contained in:
2024-07-18 13:31:21 -04:00
parent 29af0b31b1
commit a804fa6c94
8 changed files with 122 additions and 233 deletions
+2 -2
View File
@@ -1,6 +1,7 @@
-- -----------------------------------------------------------------------------
-- ---------------------------------- LAZY -------------------------------------
-- -----------------------------------------------------------------------------
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
@@ -19,9 +20,8 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
{ import = "ui" }, -- UI Plugins
{ import = "config.ui" }, -- UI Plugins
{ import = "plugins" }, -- General Plugins
{ import = "themes" }, -- Theme Plugins
},
defaults = { lazy = false, version = false },
checker = { enabled = true },
+34
View File
@@ -0,0 +1,34 @@
-- -----------------------------------------------------------------------------
-- ----------------------------------- UI --------------------------------------
-- -----------------------------------------------------------------------------
return {
{ import = "lazyvim.plugins.extras.ui.edgy" },
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
{
"xiyaowong/transparent.nvim",
event = "VeryLazy",
config = true,
},
{
"f-person/auto-dark-mode.nvim",
lazy = true,
opts = {
update_interval = 2000,
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
local ssh = os.getenv("SSH_TTY") or false
return not ssh
end,
},
}