1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-14 06:18:00 +08:00

fix(nvim-plug): set default autoload to true

This commit is contained in:
Eric Wong 2025-02-09 22:42:29 +08:00
parent 812d72d057
commit f8b0abfb7c
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,9 @@ function M.parser(plugSpec)
plugSpec.path = config.bundle_dir .. '/' .. plugSpec[1] .. '/plugin'
plugSpec.url = config.base_url .. '/' .. plugSpec[1]
end
if type(plugSpec.autoload) == 'nil' and plugSpec.type ~= 'raw' then
plugSpec.autoload = true
end
if type(plugSpec.config_before) == 'function' then
plugSpec.config_before()

View File

@ -51,6 +51,9 @@ require('plug').add({
events = { 'VimEnter' },
config = function() end,
},
{
'mhinz/vim-startify',
},
{
'rakr/vim-one',
events = { 'VimEnter' },