Skip to content

Commit

Permalink
fix: lewis6991#33, use <amatch> check if in autocmd context
Browse files Browse the repository at this point in the history
  • Loading branch information
eph authored and eph committed Jul 26, 2024
1 parent 6164524 commit c8079c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pckr/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ local function packadd(plugin)
return
end

if vim.v.vim_did_enter ~= 1 and not plugin.cond then
if vim.v.vim_did_enter ~= 1 and not vim.fn.expand('<amatch>') then
-- Do not source. We've already added to rtp, so no need to do anything.
return
end
Expand Down

0 comments on commit c8079c0

Please sign in to comment.