From c8079c005098b89f5a06436eb111ec606e378cd7 Mon Sep 17 00:00:00 2001 From: eph Date: Fri, 26 Jul 2024 15:02:07 +0800 Subject: [PATCH] fix: #33, use check if in autocmd context --- lua/pckr/loader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/pckr/loader.lua b/lua/pckr/loader.lua index bf25bdb..f27e0f0 100644 --- a/lua/pckr/loader.lua +++ b/lua/pckr/loader.lua @@ -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('') then -- Do not source. We've already added to rtp, so no need to do anything. return end