Support old plugin syntax too | Cleanup | Misc

use vim.notify to give deprecation warning

    use packer.use directly rather than wrapping around packer.startup

    Do some explicit type checking

Co-authored-by: Akianonymus <anonymus.aki@gmail.com>
This commit is contained in:
siduck 2022-09-08 14:45:23 +05:30 committed by Sidhanth Rathod
parent d61946d3bf
commit e8a4158924
2 changed files with 45 additions and 12 deletions

View file

@ -219,9 +219,7 @@ if present then
init_options = require("core.utils").load_override(init_options, "wbthomason/packer.nvim")
packer.init(init_options)
packer.startup(function(use)
for _, v in pairs(plugins) do
use(v)
end
end)
for _, v in pairs(plugins) do
packer.use(v)
end
end