tests: fixed tests

This commit is contained in:
Folke Lemaitre 2023-01-02 14:35:36 +01:00
parent 8063523471
commit 69121c7721
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 14 additions and 55 deletions

View file

@ -292,6 +292,9 @@ end
-- Finds the plugin that has this path
---@param path string
function M.find(path)
if not Config.spec then
return
end
local lua = path:find("/lua/", 1, true)
if lua then
local name = path:sub(1, lua - 1)