Skip to content

Commit

Permalink
fix(nvim-plug): set default autoload to true
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Feb 9, 2025
1 parent 812d72d commit f8b0abf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bundle/nvim-plug/lua/plug/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions bundle/nvim-plug/test/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ require('plug').add({
events = { 'VimEnter' },
config = function() end,
},
{
'mhinz/vim-startify',
},
{
'rakr/vim-one',
events = { 'VimEnter' },
Expand Down

0 comments on commit f8b0abf

Please sign in to comment.