mirror of https://github.com/folke/lazy.nvim.git
fix: replace ~ by HOME for Plugin.dir
This commit is contained in:
parent
c1fe69afd5
commit
12ded3f422
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue