mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 12:56:46 +00:00
fix(loader): no need to check plugin.dir in auto_load
This commit is contained in:
parent
9bcbbc17a7
commit
62a47b921f
2 changed files with 5 additions and 4 deletions
|
@ -525,7 +525,7 @@ end
|
|||
|
||||
function M.auto_load(modname, modpath)
|
||||
local plugin = Plugin.find(modpath, { fast = not M.did_handlers })
|
||||
if plugin and modpath:find(plugin.dir, 1, true) == 1 then
|
||||
if plugin then
|
||||
plugin._.rtp_loaded = true
|
||||
-- don't load if:
|
||||
-- * handlers haven't been setup yet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue