fix: replace ~ by HOME for Plugin.dir

This commit is contained in:
Folke Lemaitre 2022-12-13 10:29:40 +01:00
parent c1fe69afd5
commit 12ded3f422
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ function Spec:add(plugin, is_dep)
end end
if plugin.dir then if plugin.dir then
plugin.dir = plugin.dir:gsub("~", os.getenv("HOME") or "~")
-- local plugin -- local plugin
plugin.name = plugin.name or Spec.get_name(plugin.dir) plugin.name = plugin.name or Spec.get_name(plugin.dir)
elseif plugin.url then elseif plugin.url then