mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-21 05:46:45 +00:00
feat(plugin): show error for local plugins that don't exist. Fixes #1773
This commit is contained in:
parent
56ead98e05
commit
9570a5ae7b
3 changed files with 15 additions and 0 deletions
|
@ -97,4 +97,15 @@ M.docs = {
|
|||
end,
|
||||
}
|
||||
|
||||
M.exists = {
|
||||
skip = function(plugin)
|
||||
return not plugin._.is_local
|
||||
end,
|
||||
run = function(self)
|
||||
if not Util.file_exists(self.plugin.dir) then
|
||||
self:error("Local plugin does not exist at `" .. self.plugin.dir .. "`")
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue