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:
parent
d61946d3bf
commit
e8a4158924
2 changed files with 45 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue