Skip to content

Commit

Permalink
fix: replace ~ by HOME for Plugin.dir
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 13, 2022
1 parent c1fe69a commit 12ded3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12ded3f

Please sign in to comment.