Skip to content

Commit 12ded3f

Browse files
committed
fix: replace ~ by HOME for Plugin.dir
1 parent c1fe69a commit 12ded3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/lazy/core/plugin.lua

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ function Spec:add(plugin, is_dep)
7676
end
7777

7878
if plugin.dir then
79+
plugin.dir = plugin.dir:gsub("~", os.getenv("HOME") or "~")
7980
-- local plugin
8081
plugin.name = plugin.name or Spec.get_name(plugin.dir)
8182
elseif plugin.url then

0 commit comments

Comments
 (0)