mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 05:58:00 +08:00
fix(nvim-plug): set default autoload to true
This commit is contained in:
parent
812d72d057
commit
f8b0abfb7c
3
bundle/nvim-plug/lua/plug/loader.lua
vendored
3
bundle/nvim-plug/lua/plug/loader.lua
vendored
@ -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()
|
||||
|
3
bundle/nvim-plug/test/init.lua
vendored
3
bundle/nvim-plug/test/init.lua
vendored
@ -51,6 +51,9 @@ require('plug').add({
|
||||
events = { 'VimEnter' },
|
||||
config = function() end,
|
||||
},
|
||||
{
|
||||
'mhinz/vim-startify',
|
||||
},
|
||||
{
|
||||
'rakr/vim-one',
|
||||
events = { 'VimEnter' },
|
||||
|
Loading…
Reference in New Issue
Block a user