mirror of https://github.com/folke/lazy.nvim.git
fix(plugin): find plugins with `/lua/` instead of `/lua`
This commit is contained in:
parent
b5b2ab6b6c
commit
8a3152de93
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue