diff --git a/bundle/nvim-plug/lua/plug/loader.lua b/bundle/nvim-plug/lua/plug/loader.lua index 39d09d75d..718569475 100644 --- a/bundle/nvim-plug/lua/plug/loader.lua +++ b/bundle/nvim-plug/lua/plug/loader.lua @@ -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() diff --git a/bundle/nvim-plug/test/init.lua b/bundle/nvim-plug/test/init.lua index ca13926e4..6eb9c0fa9 100644 --- a/bundle/nvim-plug/test/init.lua +++ b/bundle/nvim-plug/test/init.lua @@ -51,6 +51,9 @@ require('plug').add({ events = { 'VimEnter' }, config = function() end, }, + { + 'mhinz/vim-startify', + }, { 'rakr/vim-one', events = { 'VimEnter' },