Deleted lazy dependency
This commit is contained in:
parent
27202df0a5
commit
ceeb113721
24 changed files with 193 additions and 243 deletions
25
lua/packer.lua
Normal file
25
lua/packer.lua
Normal 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, {})
|
||||
Loading…
Add table
Add a link
Reference in a new issue