fix: only use dev url if plugin exists

This commit is contained in:
Sebastian Lyng Johansen 2022-12-21 20:05:32 +01:00
commit bbc17cb3b0

View file

@ -93,7 +93,7 @@ function Spec:add(plugin, is_dep)
end
end
-- dev plugins
if plugin.dev then
if plugin.dev and vim.loop.fs_stat(Config.options.dev.path .. "/" .. plugin.name) then
plugin.dir = Config.options.dev.path .. "/" .. plugin.name
else
-- remote plugin