modified architecture

This commit is contained in:
2025-10-13 23:26:50 +02:00
parent 70c56bede3
commit f0f7dbee41
10 changed files with 3 additions and 3 deletions

30
lua/plugin_loader.lua Normal file
View File

@@ -0,0 +1,30 @@
local config = require("config").plugins
-- Plugin loader
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- Plugins
local plugins = {}
for name, info in pairs(config) do
if info.enabled then
local plugin = require("plugins." .. name)
table.insert(plugins, plugin)
end
end
require("lazy").setup(plugins)