fix(plugin): find plugins with `/lua/` instead of `/lua`

This commit is contained in:
Folke Lemaitre 2022-12-26 23:41:19 +01:00
parent b5b2ab6b6c
commit 8a3152de93
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -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)