From 12ded3f4223f3dc465e671c16ff1a537a75150fa Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 13 Dec 2022 10:29:40 +0100 Subject: [PATCH] fix: replace ~ by HOME for Plugin.dir --- lua/lazy/core/plugin.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index f7cb5a9..44c32c8 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -76,6 +76,7 @@ function Spec:add(plugin, is_dep) end if plugin.dir then + plugin.dir = plugin.dir:gsub("~", os.getenv("HOME") or "~") -- local plugin plugin.name = plugin.name or Spec.get_name(plugin.dir) elseif plugin.url then