Deleted lazy dependency

This commit is contained in:
Rendo 2026-10-20 21:54:21 +05:00
commit ceeb113721
24 changed files with 193 additions and 243 deletions

25
lua/packer.lua Normal file
View file

@ -0,0 +1,25 @@
local config_module_dir = 'packs/'
local packs_file = 'packs.lua'
vim.pack.add(require(packs_file))
local config_module_path = vim.fs.joinpath(vim.fn.stdpath('config'), 'lua/' .. config_module_dir)
for name, _ in vim.fs.dir(config_module_path) do
if name == 'lua.lua' then
goto continue
end
local ok, config = pcall(require,config_module_dir .. name:gsub('%.lua',''))
if ok then
if config[1] ~= nil then
config[1]()
end
if config['config'] ~= nil then
config['config']()
end
end
::continue::
end
vim.api.nvim_create_user_command('UpdatePacks', function ()
vim.pack.update()
end, {})