mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 06:07:58 +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.path = config.bundle_dir .. '/' .. plugSpec[1] .. '/plugin'
|
||||||
plugSpec.url = config.base_url .. '/' .. plugSpec[1]
|
plugSpec.url = config.base_url .. '/' .. plugSpec[1]
|
||||||
end
|
end
|
||||||
|
if type(plugSpec.autoload) == 'nil' and plugSpec.type ~= 'raw' then
|
||||||
|
plugSpec.autoload = true
|
||||||
|
end
|
||||||
|
|
||||||
if type(plugSpec.config_before) == 'function' then
|
if type(plugSpec.config_before) == 'function' then
|
||||||
plugSpec.config_before()
|
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' },
|
events = { 'VimEnter' },
|
||||||
config = function() end,
|
config = function() end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'mhinz/vim-startify',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'rakr/vim-one',
|
'rakr/vim-one',
|
||||||
events = { 'VimEnter' },
|
events = { 'VimEnter' },
|
||||||
|
Loading…
Reference in New Issue
Block a user