Skip to content

Commit

Permalink
fix(plugin): find plugins with /lua/ instead of /lua
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 27, 2022
1 parent b5b2ab6 commit 8a3152d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ end
-- Finds the plugin that has this path
---@param path string
function M.find(path)
local lua = path:find("/lua", 1, true)
local lua = path:find("/lua/", 1, true)
if lua then
local name = path:sub(1, lua - 1)
local slash = name:reverse():find("/", 1, true)
Expand Down

0 comments on commit 8a3152d

Please sign in to comment.