From 8a3152de9357cf751546da5a17b9fd52868344f1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 26 Dec 2022 23:41:19 +0100 Subject: [PATCH] fix(plugin): find plugins with `/lua/` instead of `/lua` --- lua/lazy/core/plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index 54509e5..fff2b53 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -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)